I am using DarkGDK 7.3(tried with the older version too) with DarkAI.
All the AI samples compile and work ok, but when i try to use advanced terrain with it i get the error below :
The terrains work fine on its own, just like the darkai.
it means that the symbol :
void (__cdecl* g_DeleteObject)(int)
has been declared both in terrain.lib and darkai.lib..
does anybody know if this is a bug or if im doing something wrong ?
1>------ Build started: Project: DarkAI Test1, Configuration: Release Win32 ------
1>Compiling...
1>Main.cpp
1>Linking...
1>terrain.lib(Basic.obj) : error LNK2005: "void (__cdecl* g_DeleteObject)(int)" (?g_DeleteObject@@3P6AXH@ZA) already defined in darkai.lib(DarkAI.obj)
1> Creating library Release\DarkAI Test1.lib and object Release\DarkAI Test1.exp
1>Release\DarkAI Test1.exe : fatal error LNK1169: one or more multiply defined symbols found
1>Build log was saved at "file://c:\Documents and Settings\Paul\My Documents\Visual Studio 2008\Projects\PWGDKLibrary Base\DarkAI Tutorial Step1\Release\BuildLog.htm"
1>DarkAI Test1 - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Error 1 error LNK2005: "void (__cdecl* g_DeleteObject)(int)" (?g_DeleteObject@@3P6AXH@ZA) already defined in darkai.lib(DarkAI.obj) terrain.lib
Error 2 fatal error LNK1169: one or more multiply defined symbols found c:\Documents and Settings\Paul\My Documents\Visual Studio 2008\Projects\PWGDKLibrary Base\DarkAI Tutorial Step1\Release\DarkAI Test1.exe
If it ain't broke.... DONT FIX IT !!!