I am using visual studio 2005. I wrote a GUI program to communicate with
other counterpart.
But when I finish compile to link the MFC GUI to quickfix.lib, I am so
frustrated....
the main problem is that:
msvcprtd.lib(MSVCP80D.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 FixConn.obj
msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall
std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined
in libcpmtd.lib(xlock.obj)
I know this is because the MFC library is conflict with std c++ library
I tried every method in microsoft knowledge base and some other source,
but still don't work...
The referrence as following:
"A LNK2005 error occurs when the CRT library and MFC libraries are
linked in the wrong order in Visual C++"
http://support.microsoft.com/kb/148652
"Linker Errors, CString, ATL, MFC, and YOU!"
http://www.codeproject.com/buglist/linkererrors.asp?df=100&forumid=15354&exp=0&select=548037
somebody can help? great thanks!
Jin
|