Two linker errors relating to hkBase.lib

Two linker errors relating to hkBase.lib

As of right now, I am attempting to build a CLR project. But, I am getting a two linker errors related to the hkBase.lib library. The unresolved external symbols are: "struct hkTestEntry * hkUnitTestDatabase" and "class hkBool __cdecl hkTestReport(int,char const *,char const *,int)"

So any idea why this would be occuring? Any help would be appreciated.

4 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

Hi Benny,

It sounds like the linker isn't deadstripping unused symbols properly. If you add the following code to your project it should get around the problem:

hkTestEntry* hkUnitTestDatabase;
hkBool HK_CALL hkTestReport(hkBool32 cond, const char* desc, const char* file, int line)
errorReport(desc, 0);
return false;

I got this from the console example MT demo source:


Hope that helps!

Ok, yes, that worked. Thanks a lot!

hi seanbhristi,....
great information shared,..
There was issues with people running my debug
executable so I had to build in release mode, but I had apparently
forgotten to do that. Did you compile it yourself or did you run the
debug executable?
helpful stuff,..

Accedere per lasciare un commento.