unresolved external symbol __imp___CrtDbgReportW referenced in function

 今天把自己程序代码放到别的机器上跑,在自己机器上跑得很成功,但到别的机器上运行时发现在编译时出了这个问题:

    Error 1 error LNK1120: 1 unresolved externals

    Error 2 error LNK2019: unresolved external symbol __imp___CrtDbgReportW referenced in function "public: class facedata & __thiscall std::vector<class facedata,class std::allocator<class facedata> >::operator[](unsigned int)" (??A?$vector@Vfacedata@@V?$allocator@Vfacedata@@@std@@@std@@QAEAAVfacedata@@I@Z)

   整了半个小时,才发现是运行库的设置问题。

  解决办法:Properties(属性)-->Configuration Properties(配置属性)-->C/C++-->Code Generation(代码生成)-->Runtime Library(运行库):   Multi-threaded Debug DLL (/MDd)(多线程调试DLL(/MDd))

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值