PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

MFC Samples Build Error in Debug mode.

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
smiletiger · 13 Sep 2006, 10:11 UTC — anyone knows how to resolve this problem?
3ks!