PocketMatrix forums

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

GapiDraw 2.05 and Linker errors

I have started to write a small game engine using GapiDraw 2.05. I have a strange problem when I link code that uses some of the API functions.

In a nutshell I am experiencing unresolved externals LNK2019. The strange thing it doesn't happen for all functions in the API.

e.g

GDKEYLIST keylist;
m_input.GetKeyList(&keylist;); -- Causes LNK2019

where as

m_input.OpenDisplay(); -- Works fine, no error.

Both calls are in the same class!?! 8O I would understand if all API calls were causing LNK2019 errors but they are not.


I am also experience problems when using the CGAPISurface Blt, BltFast and DrawTextA functions.

Any advice would be most appreciated.

Thanks in advance
It appears your code may be based on 2.04 while you are trying to link to 2.05/3.x
Indeed I am linking to 205 using

#pragma comment(lib, "gd205.lib")

I am quite sure that the headers came with 205 also. The examples seem to work fine.

I just have this strange problem within my engine. :(
Hmmm... I don't have the 2.05 release on my system so I can't go back and test the samples, but I'm pretty much positive they all worked correctly. If you have multiple versions of GapiDraw on your system (as I do), make sure your include path is pointing to the right place.
Thanks for the advice.

I have decided to downloaded 3.01 eval and I will change to use that. Probably best to be current.

I just need to alter my code to use the 3.01 syntax. Hopefully this will solve my problems.
FYI, The 301 version works fine :D. Not sure what the problem was with 205.

It could have been a difference with 204 and 205 but I don't have the original of 204 and 205 to compare.

Once I prove my game concept I will register 301. Thanks again for your help , I thought I was going mad. :wink: