PocketMatrix forums

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

smartphone2002 emul / GD301 / HSS0.99.1.beta2 LNK2019 ERROR

Hi all,
I'm trying to port my game to smartphone. I first try to make it play on the smartphone 2002 emulator.
It compiles but I got the following linker errors:


Linking...
taptatop.obj : error LNK2019: unresolved external symbol "public: __thiscall CGapiHekkusApplication::CGapiHekkusApplication(struct _GDAPPCONFIG const &,struct _HSSCONFIG const &)" (??0CGapiHekkusApplication@@QAE@ABU_GDAPPCONFIG@@ABU_HSSCONFIG@@@Z) referenced in function "public: __thiscall CMyApplication::CMyApplication(struct _GDAPPCONFIG const &,struct _HSSCONFIG const &)" (??0CMyApplication@@QAE@ABU_GDAPPCONFIG@@ABU_HSSCONFIG@@@Z)

taptatop.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall CGapiHekkusApplication::~CGapiHekkusApplication(void)" (??1CGapiHekkusApplication@@UAE@XZ) referenced in function "public: virtual __thiscall CMyApplication::~CMyApplication(void)" (??1CMyApplication@@UAE@XZ)

X86Dbg/taptatop.exe : fatal error LNK1120: 2 unresolved externals

Error executing link.exe.


Has someone else encountered this kind of error before?
Please help!!!!!


Thanks in advance.
Vincent.
might seem like an obvious suggestion, but have you checked that you've added the correct paths into your smartphone build ?

the errors look as though it's not finding the .h files, or else not finding the correct .lib file
Hi muff,
thanks for your suggestion.
The problem is linked to the integration of Hekkus Sound System.
When I take HSS off it compiles and links without error.
Thomas (HSS developper) told me: "The problem you are experiencing is due to a wrong use of the GapiHekkusApplication.h. In it I have derived the GapiApplication class to provide a simple way to add Hekkus on your project but GapiDraw developer change it on every release and maybe there is some function that I have derived that have changed on the new GD release."
I'm not a good enough programmer to understand what he means so please could someone help me!!!

Thanks.
Vincent.
Hi Vincent,

Hm. This issue shouldn't be that hard to pinpoint. I am quite busy this week, but try to compare the CGapiHekkusApplication shipped with the hekkus system with the CMyApplication shipped with the GapiDraw samples. Check for similarities and differences when it comes to the constructor and destructor.
Hi,
I finally solved my problem, I had just forgotten the constructor and destructor declaration at the end of the CGapiHekkusApplication.h file!!!!
Shame on me!!

Now Taptatop is almost working on a smartphone, I just got a problem with the highscore file...

Thanks.
Vincent.