首页 > 其他 > 详细

VC中链接错误,提示string重定义

时间:2014-12-07 19:04:46      阅读:327      评论:0      收藏:0      [点我收藏+]

VC链接错误,说是string已经有了实现了,只要 rebuild 一下好了。

Linking...
LINK : warning LNK4075: ignoring ‘/EDITANDCONTINUE‘ due to ‘/OPT:ICF‘ specification
msvcprtd.lib(MSVCP71D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in ScLogger.obj
msvcprtd.lib(MSVCP71D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in ScLogger.obj

VC中链接错误,提示string重定义

原文:http://www.cnblogs.com/zhaojk2010/p/4149663.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!