Page 1 of 1

Building KAI / KAIK with VS.net

Posted: 23 Oct 2007, 23:07
by submarine
Has anyone ever tried to build one of those with vs.net 2005?

I'm getting lots of linker errors like

MetalMaker.obj : error LNK2001: Non resolved external symbol ""public: __thiscall creg::ClassBinder::ClassBinder(char const *,unsigned int,class creg::ClassBinder *,class creg::IMemberRegistrator * *,int,void (__cdecl*)(void *),void (__cdecl*)(void *))" (??0ClassBinder@creg@@QAE@PBDIPAV01@PAPAVIMemberRegistrator@1@HP6AXPAX@Z4@Z)".

Which lib do i have to add?

Posted: 23 Oct 2007, 23:29
by Kloot
Those link errors are caused by the creg stuff
KAI and KAIK both use, you have to build them
such that the creg-ai.os, Serializer-ai.os, and
VarTypes-ai.os object files (which normally live
in build/rts/System/creg) get baked into the dll
as well (scons does this automatically).

Posted: 24 Oct 2007, 00:21
by submarine
thy very much for the quick reply , it now works :)

if anyone else has the same problem:

add all .cpp and .h files from rts/system/creg and float3.h + float3.cpp from rts/system to your project and it will compile & link

@kloot: do you mind if i add vs 2005 project files to svn?

Posted: 24 Oct 2007, 01:40
by Kloot
Go ahead, but please put them in a
subdirectory beneath KAIK-0.13/ (it's
already a bit unorganized in there with
everything lumped together ;)).