Hey guys sorry for another call for help.
After working our my DarkPhysics problems I have decided I would now add DarkLights and DarkAI into the equation. It would appear that they don't seem to like each other.
Small snippet of code
#include "DarkGDK.h"
#include "DarkLights.h"
#include "DarkAI.h"
#include "DarkPhysics.h"
// the main entry point for the application is this function
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
AIStart ( );
LMStart();
dbPhyStart ( );
// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbSync ( );
}
// return back to windows
return;
}
My build log
1>------ Build started: Project: 3DMoops, Configuration: Debug Win32 ------
1>Compiling...
1>Main.cpp
1>Linking...
1>DarkPhysics.lib(EngineSetup.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
1>DarkAI.lib(DarkAI.obj) : error LNK2005: "char * errStr" (?errStr@@3PADA) already defined in DarkLights.lib(LightMapper.obj)
1>DarkAI.lib(DarkAI.obj) : error LNK2005: "struct sObject * (__cdecl* g_GetObject)(int)" (?g_GetObject@@3P6APAUsObject@@H@ZA) already defined in DarkLights.lib(LightMapper.obj)
1>DarkAI.lib(DarkAI.obj) : error LNK2005: "int (__cdecl* g_ObjectExist)(int)" (?g_ObjectExist@@3P6AHH@ZA) already defined in DarkLights.lib(LightMapper.obj)
1>DarkAI.lib(DarkAI.obj) : error LNK2005: "void (__cdecl* g_PositionObject)(int,float,float,float)" (?g_PositionObject@@3P6AXHMMM@ZA) already defined in DarkLights.lib(LightMapper.obj)
1>DarkAI.lib(DarkAI.obj) : error LNK2005: "bool (__cdecl* g_CalcObjectWorld)(struct sObject *)" (?g_CalcObjectWorld@@3P6A_NPAUsObject@@@ZA) already defined in DarkLights.lib(LightMapper.obj)
1>DarkAI.lib(DarkAI.obj) : error LNK2005: "void (__cdecl* g_CalculateAbsoluteWorldMatrix)(struct sObject *,struct sFrame *,struct sMesh *)" (?g_CalculateAbsoluteWorldMatrix@@3P6AXPAUsObject@@PAUsFrame@@PAUsMesh@@@ZA) already defined in DarkLights.lib(LightMapper.obj)
1>DarkAI.lib(DarkAI.obj) : error LNK2005: "void __cdecl InvalidPointer(void)" (?InvalidPointer@@YAXXZ) already defined in DarkLights.lib(LightMapper.obj)
1>Debug\3DMoops.exe : fatal error LNK1169: one or more multiply defined symbols found
1>Build log was saved at "file://c:\Users\Den\Documents\Visual Studio 2008\Projects\3DMoops\3DMoops\Debug\BuildLog.htm"
1>3DMoops - 8 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
After the trouble I had understanding explicit library linking for these plugsin am I missing something here?
I have already removed Sparkys collision library as this also had trouble with DarkLights same as above, im not too worried about Sparky's right since I bought DarkPhysics I may as well use this and hope they work with other plugs.
Any help appreciated.