PocketMatrix forums

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

Newbie "unresolved external symbol " problem

I've installed the GAPI files in the correct places (MS sample GAPI app builds and runs ok) but I get the following error (and another 9 similar ones)

EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXCloseDisplay(void)"

If I change EasyCE.h to include gx.h, instead of declaring all the GAPI stuff itself, it can't find the following function:

GXIsDisplayDRAMBuffer();

This isn't in the gx.h I've got from the eVC CD. What's going on?

I've seen someone post a similar problem before, but they didn't say how they solved it!.

Any help appreciated.
You need to go into the eVC project settings, Link tab, and add gx.lib to the list of Object/library modules.

Dan East
Cheers! It worked.

I'm still a little confused though.
I had to use the gx.lib which came with the sampleapp, not the gx.lib that came on the eVC CD, due to not being able to find "GXIsDisplayDRAMBuffer()" in the original version.

How come easyCE uses a different version of gx.lib?
It has been my experience that what is found on installation CD-ROMs is outdated. For example, any game you purchase on CD-ROM invariably needs to be updated online as soon as you install it. There are thousands of eVC++ CD-ROMs out there with the old version of the GAPI library, that MS will not waste money throwing out.

Dan East