When I add the following line to my code:
std::string sFrameTag
I get the following linker error:
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
I'm sure sFrameTag is only defined once, I tried using other names for this variable to be sure. I have the following includes: stdio.h, time.h, string.
Can someone please guide it as to what causes this error?
std::string sFrameTag, that's missing at least a semicolon, and I suspect there are a few parantheses or other stuff as well.