PocketMatrix forums

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

Migration from 1.0X to 2.0X ?

Hi All,

I started a project some monthes ago using gapidraw 1.04, and today I'd like to move to 2.04. I noticed several changes, and I'm wondering if there's a document somewhere covering this ?
As many programmers, I'm a bit lazy :wink: , and I'll probably be able to fix the tons of EVC errors, but if a document covering the whole subject exists somewhere, I'll be more than happy :lol:

Thanx for your help
julien · 02 Sep 2003, 18:39 UTC — Migration from 1.0X to 2.0X ?
julien wrote:
As many programmers, I'm a bit lazy :wink: , and I'll probably be able to fix the tons of EVC errors, but if a document covering the whole subject exists somewhere, I'll be more than happy :lol:


OK, I finally fixed all EVC errors, but I'm now having linking problems, I'm getting unresolved external symbols for CGapiApplication methods :cry: .
I'm currently linking these libs into my project : commctrl.lib, coredll.lib, aygshell.lib and gd204.lib

Any ideas ?


ps : here is EVC's exact output :
Linking...
PenBall.obj : error LNK2019: unresolved external symbol "public: virtual long __cdecl CGapiApplication::Run(void)" (?Run@CGapiApplication@@UAAJXZ) referenced in function WinMain
PenBall.obj : error LNK2001: unresolved external symbol "protected: virtual long __cdecl CGapiApplication::WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@CGapiApplication@@MAAJPAUHWND__@@IIJ@Z)
PenBall.obj : error LNK2001: unresolved external symbol "public: virtual long __cdecl CGapiApplication::SetError(unsigned short const *,long)" (?SetError@CGapiApplication@@UAAJPBGJ@Z)
PenBall.obj : error LNK2001: unresolved external symbol "public: virtual long __cdecl CGapiApplication::SetDisplayMode(unsigned long)" (?SetDisplayMode@CGapiApplication@@UAAJK@Z)
PenBall.obj : error LNK2001: unresolved external symbol "public: virtual long __cdecl CGapiApplication::Pause(unsigned long)" (?Pause@CGapiApplication@@UAAJK@Z)
PenBall.obj : error LNK2001: unresolved external symbol "public: virtual long __cdecl CGapiApplication::Minimize(void)" (?Minimize@CGapiApplication@@UAAJXZ)
PenBall.obj : error LNK2001: unresolved external symbol "public: virtual long __cdecl CGapiApplication::Shutdown(void)" (?Shutdown@CGapiApplication@@UAAJXZ)
PenBall.obj : error LNK2019: unresolved external symbol "public: __cdecl CGapiApplication::CGapiApplication(struct _GDAPPCONFIG const &)" (??0CGapiApplication@@QAA@ABU_GDAPPCONFIG@@@Z) referenced in function "public: __cdecl CMyApplication::CMyAppli
cation(struct _GDAPPCONFIG const &)" (??0CMyApplication@@QAA@ABU_GDAPPCONFIG@@@Z)
PenBall.obj : error LNK2019: unresolved external symbol "public: virtual __cdecl CGapiApplication::~CGapiApplication(void)" (??1CGapiApplication@@UAA@XZ) referenced in function "public: virtual __cdecl CMyApplication::~CMyApplication(void)" (??1CMyA
pplication@@UAA@XZ)
ARMDbg/PenBall.exe : fatal error LNK1120: 9 unresolved externals
Error executing link.exe.
InexorableTash · 03 Sep 2003, 03:58 UTC
You need to add GapiDraw\include\GapiApplication.cpp to your build list - in 1.X all of the method implementations were in the .h, in 2.X they moved to the .cpp
InexorableTash wrote:
You need to add GapiDraw\include\GapiApplication.cpp to your build list - in 1.X all of the method implementations were in the .h, in 2.X they moved to the .cpp

Hum, yes, of course... :oops: Once said it sound so logical :roll:

thanx !