关于链接的问题!
居易锦风 2009-03-23 03:14:45 我在项目中链接了lib/Debug/GUITools.Lib库
之后编译出现了以下的错误:
2>Linking...
2>atlsd.lib(atltypes.obj) : error LNK2005: "public: __thiscall CSize::CSize(int,int)" (??0CSize@@QAE@HH@Z) already defined in libepimp.lib(bitmapcombobox.obj)
2>atlsd.lib(atltypes.obj) : error LNK2005: "public: __thiscall CPoint::CPoint(int,int)" (??0CPoint@@QAE@HH@Z) already defined in libepimp.lib(bitmapcombobox.obj)
2>atlsd.lib(atltypes.obj) : error LNK2005: "public: __thiscall CRect::CRect(void)" (??0CRect@@QAE@XZ) already defined in libepimp.lib(colorstatic.obj)
2>atlsd.lib(atltypes.obj) : error LNK2005: "public: __thiscall CRect::CRect(int,int,int,int)" (??0CRect@@QAE@HHHH@Z) already defined in libepimp.lib(ColorListCtrl.obj)
2>atlsd.lib(atltypes.obj) : error LNK2005: "public: __thiscall CRect::CRect(struct tagRECT const &)" (??0CRect@@QAE@ABUtagRECT@@@Z) already defined in libepimp.lib(bitmapcombobox.obj)
2>atlsd.lib(atltypes.obj) : error LNK2005: "public: int __thiscall CRect::Width(void)const " (?Width@CRect@@QBEHXZ) already defined in libepimp.lib(bitmapcombobox.obj)
2>atlsd.lib(atltypes.obj) : error LNK2005: "public: __thiscall CRect::operator struct tagRECT *(void)" (??BCRect@@QAEPAUtagRECT@@XZ) already defined in libepimp.lib(colorstatic.obj)
2>atlsd.lib(atltypes.obj) : error LNK2005: "public: void __thiscall CRect::DeflateRect(int,int)" (?DeflateRect@CRect@@QAEXHH@Z) already defined in libepimp.lib(ColorListCtrl.obj)
2>atlsd.lib(atltypes.obj) : error LNK2005: "public: void __thiscall CRect::DeflateRect(struct tagSIZE)" (?DeflateRect@CRect@@QAEXUtagSIZE@@@Z) already defined in libepimp.lib(bitmapcombobox.obj)
2>LINK : fatal error LNK1104: cannot open file 'mfc42u.lib'
是什么原因呢?