XXX.exe - 58 error(s), 2 warning(s)Complier沒有任何問題,但是link發生下列問題.我該如何處理.
--------------------Configuration: PowerCAD - Win32
Debug--------------------
Linking...
nafxcwd.lib(afxinl3.obj) : error LNK2005: "public: void __thiscall
CWnd::GetClientRect(struct tagRECT *)const "
(?GetClientRect@CWnd@@QBEXPAUtagRECT@@@Z) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl3.obj) : error LNK2005: "public: class CDC *
__thiscall CWnd::GetDC(void)" (?GetDC@CWnd@@QAEPAVCDC@@XZ) already
defined in Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl3.obj) : error LNK2005: "public: int __thiscall
CWnd::ReleaseDC(class CDC *)" (?ReleaseDC@CWnd@@QAEHPAVCDC@@@Z) already
defined in Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(objcore.obj) : error LNK2005: "public: virtual void
__thiscall CObject::AssertValid(void)const "
(?AssertValid@CObject@@UBEXXZ) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(objcore.obj) : error LNK2005: "public: virtual void
__thiscall CObject::Dump(class CDumpContext &)const "
(?Dump@CObject@@UBEXAAVCDumpContext@@@Z) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxmem.obj) : error LNK2005: "public: static void *
__stdcall CObject::operator new(unsigned int)" (??2CObject@@SGPAXI@Z)
already defined in Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxmem.obj) : error LNK2005: "public: static void __stdcall
CObject::operator delete(void *)" (??3CObject@@SGXPAX@Z) already defined
in Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: __thiscall
CRect::CRect(void)" (??0CRect@@QAE@XZ) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall
CRect::Width(void)const " (?Width@CRect@@QBEHXZ) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall
CRect::Height(void)const " (?Height@CRect@@QBEHXZ) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: __thiscall
CGdiObject::CGdiObject(void)" (??0CGdiObject@@QAE@XZ) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: virtual __thiscall
CGdiObject::~CGdiObject(void)" (??1CGdiObject@@UAE@XZ) already defined
in Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall
CGdiObject::CreateStockObject(int)"
(?CreateStockObject@CGdiObject@@QAEHH@Z) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: __thiscall
CPen::CPen(void)" (??0CPen@@QAE@XZ) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: virtual __thiscall
CPen::~CPen(void)" (??1CPen@@UAE@XZ) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall
CPen::CreatePen(int,int,unsigned long)" (?CreatePen@CPen@@QAEHHHK@Z)
already defined in Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: __thiscall
CBrush::CBrush(void)" (??0CBrush@@QAE@XZ) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: virtual __thiscall
CBrush::~CBrush(void)" (??1CBrush@@UAE@XZ) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall
CBrush::CreateSolidBrush(unsigned long)"
(?CreateSolidBrush@CBrush@@QAEHK@Z) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: __thiscall
CPalette::CPalette(void)" (??0CPalette@@QAE@XZ) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: virtual __thiscall
CPalette::~CPalette(void)" (??1CPalette@@UAE@XZ) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall
CPalette::CreatePalette(struct tagLOGPALETTE *)"
(?CreatePalette@CPalette@@QAEHPAUtagLOGPALETTE@@@Z) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: struct HDC__ *
__thiscall CDC::GetSafeHdc(void)const "
(?GetSafeHdc@CDC@@QBEPAUHDC__@@XZ) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall
CDC::GetDeviceCaps(int)const " (?GetDeviceCaps@CDC@@QBEHH@Z) already
defined in Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: unsigned int
__thiscall CDC::RealizePalette(void)" (?RealizePalette@CDC@@QAEIXZ)
already defined in Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: void __thiscall
CDC::UpdateColors(void)" (?UpdateColors@CDC@@QAEXXZ) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall
CDC::Polyline(struct tagPOINT *,int)"
(?Polyline@CDC@@QAEHPAUtagPOINT@@H@Z) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall
CDC::Polygon(struct tagPOINT *,int)"
(?Polygon@CDC@@QAEHPAUtagPOINT@@H@Z) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall
CDC::PatBlt(int,int,int,int,unsigned long)" (?PatBlt@CDC@@QAEHHHHHK@Z)
already defined in Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: unsigned long
__thiscall CDC::SetPixel(int,int,unsigned long)"
(?SetPixel@CDC@@QAEKHHK@Z) already defined in Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl1.obj) : error LNK2005: "protected: __thiscall
CObject::CObject(void)" (??0CObject@@IAE@XZ) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl1.obj) : error LNK2005: "public: virtual __thiscall
CObject::~CObject(void)" (??1CObject@@UAE@XZ) already defined in
Acismfc.lib(drv_cdc.obj)
nafxcwd.lib(afxinl1.obj) : error LNK2005: "public: virtual void
__thiscall CObject::Serialize(class CArchive &)"
(?Serialize@CObject@@UAEXAAVCArchive@@@Z) already defined in
Acismfc.lib(drv_cdc.obj)
LINK : warning LNK4098: defaultlib "nafxcw.lib" conflicts with use of
other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "libcmt.lib" conflicts with use of
other libs; use /NODEFAULTLIB:library
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: virtual void __thiscall
driver_context::copy_to_clipboard(int,int,int,int)"
(?copy_to_clipboard@driver_context@@UAEXHHHH@Z)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: virtual int __thiscall driver_context::draw_text_3d(class
position const &,char const *)"
(?draw_text_3d@driver_context@@UAEHABVposition@@PBD@Z)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: virtual int __thiscall driver_context::draw_line(class position
const &,class position const &)"
(?draw_line@driver_context@@UAEHABVposition@@0@Z)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: virtual int __thiscall
driver_context::draw_point_2d(float,float)"
(?draw_point_2d@driver_context@@UAEHMM@Z)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: virtual int __thiscall driver_context::draw_point_3d(class
position const &)" (?draw_point_3d@driver_context@@UAEHABVposition@@@Z)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: virtual int __thiscall
driver_context::draw_polyline_3d(int,float const * const,int)"
(?draw_polyline_3d@driver_context@@UAEHHQBMH@Z)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: virtual void __thiscall driver_context::get_viewport(int &,int
&,int &,int &)" (?get_viewport@driver_context@@UAEXAAH000@Z)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: virtual void __thiscall
driver_context::set_viewport(int,int,int,int)"
(?set_viewport@driver_context@@UAEXHHHH@Z)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: virtual void __thiscall driver_context::get_display_window(int
&,int &,int &,int &)" (?get_display_window@driver_context@@UAEXAAH000@Z)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: virtual void __thiscall
driver_context::set_display_window(int,int,int,int)"
(?set_display_window@driver_context@@UAEXHHHH@Z)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: virtual int __thiscall driver_context::is_valid(void)const "
(?is_valid@driver_context@@UBEHXZ)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: virtual unsigned int * __thiscall
driver_context::get_display(void)const "
(?get_display@driver_context@@UBEPAIXZ)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: virtual void __thiscall driver_context::set_view3d(class view3d
*)" (?set_view3d@driver_context@@UAEXPAVview3d@@@Z)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: virtual __thiscall driver_context::~driver_context(void)"
(??1driver_context@@UAE@XZ)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: __thiscall driver_context::driver_context(void)"
(??0driver_context@@QAE@XZ)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: __thiscall rgb_color::rgb_color(int)" (??0rgb_color@@QAE@H@Z)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: __thiscall rgb_color::operator int(void)"
(??Brgb_color@@QAEHXZ)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: void __thiscall rgb_color::set_windows_color(unsigned long)"
(?set_windows_color@rgb_color@@QAEXK@Z)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: void __thiscall acis_camera::SetHeight(double)"
(?SetHeight@acis_camera@@QAEXN@Z)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: void __thiscall acis_camera::SetWidth(double)"
(?SetWidth@acis_camera@@QAEXN@Z)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: unsigned long __thiscall rgb_color::windows_color(void)const "
(?windows_color@rgb_color@@QBEKXZ)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: int __thiscall rgb_color::operator!=(class rgb_color const
&)const " (??9rgb_color@@QBEHABV0@@Z)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: virtual int __thiscall
driver_context::draw_polyline_2d(int,float const * const,int)"
(?draw_polyline_2d@driver_context@@UAEHHQBMH@Z)
Acismfc.lib(drv_cdc.obj) : error LNK2001: unresolved external symbol
"public: virtual int __thiscall
driver_context::draw_text_2d(float,float,char const *)"
(?draw_text_2d@driver_context@@UAEHMMPBD@Z)
Debug/PowerCAD.exe : fatal error LNK1120: 24 unresolved externals
Error executing link.exe.
XXX.exe - 58 error(s), 2 warning(s)
--
* Origin: ★ 交通大學資訊科學系 BBS ★ <bbs.cis.nctu.edu.tw: 140.113.23.3>