PocketMatrix forums

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

link error - GD3.6a smartphone 2003

Hi guys,
I'm trying to switch an app from GD3.5 to GD3.6a.
It compiles ok, but I get the following link errors:

Linking...
gapidraw.lib(GapiSurface.obj) : error LNK2019: unresolved external symbol "long __cdecl gdimage::CreateSurface(class CGapiSurfaceHelper *,unsigned long,class CGapiSurface &,unsigned char *,unsigned long)" (?CreateSurface@gdimage@@YAJPAVCGapiSurfaceH
elper@@KAAVCGapiSurface@@PAEK@Z) referenced in function "public: long __cdecl CGapiSurface::CreateSurface(unsigned long,unsigned char *,unsigned long)" (?CreateSurface@CGapiSurface@@QAAJKPAEK@Z)
gapidraw.lib(GapiSurface.obj) : error LNK2019: unresolved external symbol "long __cdecl gdimage::LoadBitmapW(class CGapiSurfaceHelper *,unsigned long,class CGapiSurface &,struct HINSTANCE__ *,unsigned long)" (?LoadBitmapW@gdimage@@YAJPAVCGapiSurface
Helper@@KAAVCGapiSurface@@PAUHINSTANCE__@@K@Z) referenced in function "public: long __cdecl CGapiSurface::CreateSurface(unsigned long,struct HINSTANCE__ *,unsigned long,unsigned short const *)" (?CreateSurface@CGapiSurface@@QAAJKPAUHINSTANCE__@@KPBG
@Z)
gapidraw.lib(GapiSurface.obj) : error LNK2019: unresolved external symbol "long __cdecl gdimage::SaveSurface(class CGapiSurfaceHelper *,unsigned long,struct gdinternal::_GDSURFACE *,unsigned short const *)" (?SaveSurface@gdimage@@YAJPAVCGapiSurfaceH
elper@@KPAU_GDSURFACE@gdinternal@@PBG@Z) referenced in function "public: long __cdecl CGapiSurface::SaveSurface(unsigned short const *,unsigned long)" (?SaveSurface@CGapiSurface@@QAAJPBGK@Z)
gapidraw.lib(GapiDisplayCommon.obj) : error LNK2019: unresolved external symbol "long __cdecl gdimage::RenderSystemFont(class CGapiSurfaceHelper *,int)" (?RenderSystemFont@gdimage@@YAJPAVCGapiSurfaceHelper@@H@Z) referenced in function "long __cdecl
gddisplaycommon_RenderSystemFont(class CGapiSurfaceHelper *,unsigned long)" (?gddisplaycommon_RenderSystemFont@@YAJPAVCGapiSurfaceHelper@@K@Z)
ARMV4Rel/rtmi.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.


Any clue?
Thanks in advance.

Vincent.
Hi again,

I don't have this error when building for PPC2003.
Am I missing something obvious? As usual :)

thanks in advance.
Vincent.
Have you tried comparing the settings between PPC2003 and SmartPhone2003 to see where there are differences?

Obviously, some will need to be different however there are a lot of common settings that can be used.
Hi Antony,
thanks for your concern,
The only difference is the lib directory, pointing to lib/smartphone-arm (smp2003) or to lib-ppcsomething (ppc2003).
I have to say that with the same configuration and GD3.5 eveyrthing worked fine.

Vincent.
Hey Guys, I have the same problem, did you manage to resolve it Vince?
For those who are interested, I have fixed our problem by simply removing all ascii references and making the app comletely UNICODE complient.