Building KAI / KAIK with VS.net

Building KAI / KAIK with VS.net

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Building KAI / KAIK with VS.net

Post 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?
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post 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).
Last edited by Kloot on 24 Oct 2007, 00:58, edited 1 time in total.
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Post 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?
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post 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 ;)).
Post Reply

Return to “AI”