PocketMatrix forums

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

link problem GD3.5 smartphone 2002

Hi,

I just downloaded GD3.5 eval and tested it.
The minimal app compiles ok.
The I changed the project settings, link-input from
pocketpc-arm to smartphone-arm and I got the following error:

gapidraw.lib(GapiSurface.obj) : error LNK2019: unresolved external symbol memcpyArm referenced in function "public: long __cdecl CGapiSurface::BltFast(long,long,class CGapiSurface *,struct tagRECT *,unsigned long,struct _GDBLTFASTFX *)" (?BltFast@CGapiSurface@@QAAJJJPAV1@PAUtagRECT@@KPAU_GDBLTFASTFX@@@Z)

I tried with plasma app and got the same.

Does someone have the same problem?
Am I doing something wrong?

Vincent.
Please read the "readme.txt" file in the samples folder.
Hi Johan,
Are you trying to say that I might have forgotten to copy the afxres.h file?
Well, I must admit that I forgot at first but I did copy it after I had a very explicit message when I tried to compile.
I copied the file, and then it compiled and linked ok.
Then I changed the project settings: link/input from lib/pocketpc-arm to lib/smartphone-arm which seemed more appropriate as I want to create a smartphone 2002 app. Then I got the link error.

Does someone have an idea?
Thanks.

Vincent.
I'll take a look at it later today! Thanks for reporting!
I was just doing a build for Defiance: Final Strike on the Smartphone and found the same problem:

Code:

Linking...
gapidraw.lib(GapiSurface.obj) : error LNK2019: unresolved external symbol memcpyArm referenced in function "public: long __cdecl CGapiSurface::BltFast(long,long,class CGapiSurface *,struct tagRECT *,unsigned long,struct _GDBLTFASTFX *)" (?BltFast@CG
apiSurface@@QAAJJJPAV1@PAUtagRECT@@KPAU_GDBLTFASTFX@@@Z)
ARMRel/Defiance.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.


This problem wasn't noticed using the 2002 emulator version. Any hope of getting this corrected over the weekend? I would like to get a beta version out early next week, and still need to alpha test it in-house before doing so...
I was just doing a build for Defiance: Final Strike on the Smartphone and found the same problem:

Code:

Linking...
gapidraw.lib(GapiSurface.obj) : error LNK2019: unresolved external symbol memcpyArm referenced in function "public: long __cdecl CGapiSurface::BltFast(long,long,class CGapiSurface *,struct tagRECT *,unsigned long,struct _GDBLTFASTFX *)" (?BltFast@CG
apiSurface@@QAAJJJPAV1@PAUtagRECT@@KPAU_GDBLTFASTFX@@@Z)
ARMRel/Defiance.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.


This problem wasn't noticed using the 2002 emulator version. Any hope of getting this corrected over the weekend? I would like to get a beta version out early next week, and still need to alpha test it in-house before doing so...
I could not get this issue with GapiDraw 3.5.

I used the tiledemo sample. Copied afxres.h to the EVC3 and the EVC4 folders. Opened the EVC3 and EVC4 projects (I tried both). Changed to SMARTPHONE2002 / SMARTPHONE2003 and set it to "actual device". Set it to "ARM Release". Recompiled. Worked perfectly.

Can you please explain exactly what steps you perform to get this error.
I didn't do anything special, just set the project for Smartphone like I've always done and it came up with the linker error. I'll give the tiledemo a look and see what the difference is.
Johan, I get the same results as you when building TileDemo for the Smartphone. I'll have to dig deeper to see what I'm doing wrong...
Hi Johan,
Thanks for your reply.
I did the same as you did and got the same result, it compiled ok (TileDemo app with evc3).
I didn't try to run it on the smartphone yet, but I did it for the minimal app ant it ran ok.

The problem occurs when I change the project settings:
link/input from lib/pocketpc-arm to lib/smartphone-arm, then I get the link error.

Maybe I don't need to change this setting but then I wonder what the smartphone-arm lib is made for... :)

Thanks for your help.
Vincent.
Vincent: Aha. :) I must have missed including the assembler code block in the Smartphone-Arm LIB!

Use the pocketpc-lib in the mean time and I'll simply update the online distribution shortly with a new smartphone-arm lib.

Sorry for the problem...

//Johan
Hi Johan,
Many thanks for your reply and work.

Vincent.
Johan, please let me know when you update the distribution so I can re-download it. I'm glad this has been sorted out as I was running out of things to try and I certainly didn't want to start ripping our project apart to find what was wrong. ;)
Johan, any timeline on making the new build for this bug available? We would like to get a beta test going for our partner's title so it can be released for the holiday season.
Ok, I have updated both the evaluation and the licensed distributions. Just re-download the archive and install over. Just remember to first save any changes you might have done to the sample projects.
Thanks Johan! Works perfectly now! =)
Hi Johan,
works for me too!!
Thanks! :D

Vincent.
Great!