求助,vector::insert 联接出错。。。

郑大满 郑大满 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我的代码如下:
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无法找到?为什么?
请兄弟们帮忙看看。。。

...全文
评论 7
收藏 已收藏
分享
返回顶部
郑大满
C++ 语言 65,213 成员 250,513 内容