求助,vector::insert 联接出错。。。
郑大满 2007-07-24 01:31:01 我的代码如下:
std::vector<float> v1;
std::vector<float> v2;
//......
v2.insert( v2.end(), v1.begin(), v1.begin() );
我的工程中用到了COM, 上述代码编译能通过,但是连接不通过,错误信息如下:
error LNK2019: unresolved external symbol "__declspec(dllimport) protected: void __thiscall std::vector<float,class std::allocator<float> >::_Orphan_range(float *,float *)const " (__imp_?_Orphan_range@?$vector@MV?$allocator@M@std@@@std@@IBEXPAM0@Z) referenced in function __catch$??$_Insert@V?$_Vector_iterator@MV?$allocator@M@std@@@std@@@?$vector@MV?$allocator@M@std@@@std@@QAEXV?$_Vector_iterator@MV?$allocator@M@std@@@1@00Uforward_iterator_tag@1@@Z$0
说_Orphan_range无法找到?为什么?
请兄弟们帮忙看看。。。