当我将以下行添加到我的代码中时:
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)" (??1?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in
VFPAnalyzerApi.lib(VFPEvaluation.obj) msvcprtd.lib
我确定sFrameTag
只定义了一次,我尝试使用其他名称来确定这个变量。我有以下内容:stdio.h
, time.h
, string
.
有人可以指导它导致此错误的原因吗?