Page 1 of 1

MFC Samples Build Error in Debug mode.

PostPosted: Sep 12, 2006 @ 11:09am
by smiletiger
The latest release GapiDraw3.6, it's MFC sample cannot be built in Debug mode.

The following are the error messages:
atlsd.lib(atltypes.obj) : error LNK2005: "public: __thiscall CPoint::CPoint(void)" (??0CPoint@@QAE@XZ) already defined in gapidraw.lib(GapiSurface.obj)
atlsd.lib(atltypes.obj) : error LNK2005: "public: __thiscall CRect::CRect(void)" (??0CRect@@QAE@XZ) already defined in gapidraw.lib(GapiDisplayCommon.obj)
atlsd.lib(atltypes.obj) : error LNK2005: "public: __thiscall CRect::CRect(struct tagRECT const &)" (??0CRect@@QAE@ABUtagRECT@@@Z) already defined in gapidraw.lib(GapiSurface.obj)
atlsd.lib(atltypes.obj) : error LNK2005: "public: __thiscall CRect::operator struct tagRECT *(void)" (??BCRect@@QAEPAUtagRECT@@XZ) already defined in gapidraw.lib(GapiSurface.obj)
atlsd.lib(atltypes.obj) : error LNK2005: "public: int __thiscall CRect::PtInRect(struct tagPOINT)const " (?PtInRect@CRect@@QBEHUtagPOINT@@@Z) already defined in gapidraw.lib(GapiSurface.obj)
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

anyone knows how to resolve this problem?

PostPosted: Sep 13, 2006 @ 11:11am
by smiletiger