当我下面的行添加到我的代码:奇怪的链接错误
std::string sFrameTag
我得到下面的连接错误:
Error 34 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)" ([email protected]?
[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]) already defined in
VFPAnalyzerApi.lib(VFPEvaluation.obj) msvcprtd.lib
我敢肯定sFrameTag
只被定义一次,我试着用这个变量的其他名字来确定。我有以下内容:stdio.h
,time.h
,string
。
有人可以请指导它是什么原因导致此错误?
请告诉我们您添加到您的实际代码行(也许一些代码,如果不是100+线)。它不能是'std :: string sFrameTag',它至少缺少一个分号,我怀疑还有一些缺口或其他的东西。 – us2012 2013-03-27 11:39:58
请参阅http://www.cegui.org.uk/phpBB2/viewtopic.php?f=1&t=5445 – NPE 2013-03-27 11:43:11
您可能会显示更多细节,包括您在其中定义的文件等等。 – 2013-03-27 11:46:18