请教一个关于LINK 2005的错误!急!!!!!!!!!!
小弟的程序是在VC6.0下的控制台程序,其中分别用到下面的文件:#include <afx.h> #include <mx.h>其中"afx.h"是MFC的类库,"mx.h"是一个别人提供的一个lib的头文件,我的程序编译时没问题,可是在链接时出现如下错误:
msvcprtd.lib(MSVCP60D.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_strin
g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in mxflib.lib(mdobject.obj)
我在网上查找相关资料,说是VC运行库的版本不同而造成的,也就是说有些库生成时是Debuge,有些是Release,需要将它们的版本和自己程序的版本搞成一样才能解决,可是我已经这么做了还是不行,或者是我做错了,请高手指教,还有我想问一下:MFC的类库在提供时是Debuge的还是Release的?多谢了!!!!