Hi all.......
i have Oppose between DarkAi,darklights and SC_Collision.
this is the error:
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
DarkLights.lib(LightMapper.obj) : error LNK2005: "char * errStr" (?errStr@@3PADA) already defined in DarkAi.lib(DarkAI.obj)
DarkLights.lib(LightMapper.obj) : error LNK2005: "struct sObject * (__cdecl* g_GetObject)(int)" (?g_GetObject@@3P6APAUsObject@@H@ZA) already defined in DarkAi.lib(DarkAI.obj)
DarkLights.lib(LightMapper.obj) : error LNK2005: "int (__cdecl* g_ObjectExist)(int)" (?g_ObjectExist@@3P6AHH@ZA) already defined in DarkAi.lib(DarkAI.obj)
DarkLights.lib(LightMapper.obj) : error LNK2005: "bool (__cdecl* g_CalcObjectWorld)(struct sObject *)" (?g_CalcObjectWorld@@3P6A_NPAUsObject@@@ZA) already defined in DarkAi.lib(DarkAI.obj)
DarkLights.lib(LightMapper.obj) : error LNK2005: "void (__cdecl* g_CalculateAbsoluteWorldMatrix)(struct sObject *,struct sFrame *,struct sMesh *)" (?g_CalculateAbsoluteWorldMatrix@@3P6AXPAUsObject@@PAUsFrame@@PAUsMesh@@@ZA) already defined in DarkAi.lib(DarkAI.obj)
DarkLights.lib(LightMapper.obj) : error LNK2005: "void (__cdecl* g_PositionObject)(int,float,float,float)" (?g_PositionObject@@3P6AXHMMM@ZA) already defined in DarkAi.lib(DarkAI.obj)
DarkLights.lib(LightMapper.obj) : error LNK2005: "void __cdecl InvalidPointer(void)" (?InvalidPointer@@YAXXZ) already defined in DarkAi.lib(DarkAI.obj)
SC_Collision.lib(dllmain.obj) : error LNK2005: "struct sObject * (__cdecl* g_GetObject)(int)" (?g_GetObject@@3P6APAUsObject@@H@ZA) already defined in DarkAi.lib(DarkAI.obj)
SC_Collision.lib(dllmain.obj) : error LNK2005: "bool (__cdecl* g_CalcObjectWorld)(struct sObject *)" (?g_CalcObjectWorld@@3P6A_NPAUsObject@@@ZA) already defined in DarkAi.lib(DarkAI.obj)
SC_Collision.lib(dllmain.obj) : error LNK2005: "void (__cdecl* g_CalculateAbsoluteWorldMatrix)(struct sObject *,struct sFrame *,struct sMesh *)" (?g_CalculateAbsoluteWorldMatrix@@3P6AXPAUsObject@@PAUsFrame@@PAUsMesh@@@ZA) already defined in DarkAi.lib(DarkAI.obj)
SC_Collision.lib(dllmain.obj) : error LNK2005: "void (__cdecl* g_ConvertLocalMeshToVertsOnly)(struct sMesh *)" (?g_ConvertLocalMeshToVertsOnly@@3P6AXPAUsMesh@@@ZA) already defined in DarkLights.lib(LightMapper.obj)
SC_Collision.lib(dllmain.obj) : error LNK2005: "bool (__cdecl* g_GetFVFOffsetMap)(struct sMesh *,struct sOffsetMap *)" (?g_GetFVFOffsetMap@@3P6A_NPAUsMesh@@PAUsOffsetMap@@@ZA) already defined in DarkLights.lib(LightMapper.obj)
SC_Collision.lib(dllmain.obj) : error LNK2005: "bool bInitialised" (?bInitialised@@3_NA) already defined in DarkLights.lib(LightMapper.obj)
SC_Collision.lib(dllmain.obj) : error LNK2005: "public: __thiscall CollisionTree::CollisionTree(void)" (??0CollisionTree@@QAE@XZ) already defined in DarkLights.lib(CollisionTree.obj)
SC_Collision.lib(CollisionTree.obj) : error LNK2005: "public: void __thiscall CollisionTree::makeCollisionObject(int,class TreeFace *)" (?makeCollisionObject@CollisionTree@@QAEXHPAVTreeFace@@@Z) already defined in DarkLights.lib(CollisionTree.obj)
SC_Collision.lib(Object.obj) : error LNK2005: "public: __thiscall CollisionTree::CollisionTree(void)" (??0CollisionTree@@QAE@XZ) already defined in DarkLights.lib(CollisionTree.obj)
SC_Collision.lib(Object.obj) : error LNK2005: "public: __thiscall CollisionTree::~CollisionTree(void)" (??1CollisionTree@@QAE@XZ) already defined in DarkLights.lib(CollisionTree.obj)
SC_Collision.lib(TreeFace.obj) : error LNK2005: "public: bool __thiscall TreeFace::pointInPoly(class Point *)" (?pointInPoly@TreeFace@@QAE_NPAVPoint@@@Z) already defined in DarkLights.lib(LightMapper.obj)
SC_Collision.lib(TreeFace.obj) : error LNK2005: "public: __thiscall TreeNode::~TreeNode(void)" (??1TreeNode@@QAE@XZ) already defined in DarkLights.lib(TreeFace.obj)
SC_Collision.lib(TreeFace.obj) : error LNK2005: "public: void __thiscall TreeNode::buildTree(class TreeFace *,unsigned int,int)" (?buildTree@TreeNode@@QAEXPAVTreeFace@@IH@Z) already defined in DarkLights.lib(TreeFace.obj)
i just calling DarkLights.h,DarkAi.h and SC_Collision.h and started them.
#include "DarkGDK.h"
#include "DarkPhysics.h"
#include "DarkAi.h"
#include "DarkLights.h"
#include "SC_Collision.h"
// Dark GDK - The Game Creators - www.thegamecreators.com
// the wizard has created a very simple project that uses Dark GDK
// it contains the basic code for a GDK application
// whenever using Dark GDK you must ensure you include the header file
// the main entry point for the application is this function
void DarkGDK ( void )
{
dbPhyStart();
SC_Start();
AIStart();
LMStart();
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbSync ( );
}
// return back to windows
return;
}
Please help me.
Thanks,