jameshu
December 10th, 2003, 07:12 PM
I have a simple project that works fine for VC 6.0, but when I updated my compiler to VC++ 7.1, and included the "mfc42d.lib"
there are tons of link errors which I cannot figure out,
But if I did not inlude mfc42d.lib, then link error " cannot open mfc42d.lib"!
Any help will be greatly appreciated!!!
James
Linking...
msvcrtd.lib(MSVCR71D.dll) : error LNK2005: _strncpy already defined in libcmtd.lib(strncpy.obj)
msvcrtd.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)
msvcrtd.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)
msvcrtd.lib(MSVCR71D.dll) : error LNK2005: __setmbcp already defined in libcmtd.lib(mbctype.obj)
atlsd.lib(atltypes.obj) : error LNK2005: "public: __thiscall CSize::CSize(void)" (??0CSize@@QAE@XZ) already defined in mfc42d.lib(MFC42D.DLL)
...... Tons of link errors!!!
there are tons of link errors which I cannot figure out,
But if I did not inlude mfc42d.lib, then link error " cannot open mfc42d.lib"!
Any help will be greatly appreciated!!!
James
Linking...
msvcrtd.lib(MSVCR71D.dll) : error LNK2005: _strncpy already defined in libcmtd.lib(strncpy.obj)
msvcrtd.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)
msvcrtd.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)
msvcrtd.lib(MSVCR71D.dll) : error LNK2005: __setmbcp already defined in libcmtd.lib(mbctype.obj)
atlsd.lib(atltypes.obj) : error LNK2005: "public: __thiscall CSize::CSize(void)" (??0CSize@@QAE@XZ) already defined in mfc42d.lib(MFC42D.DLL)
...... Tons of link errors!!!