I've been experimenting with a few of the included shader examples in the GDK and began leaning towards buying darkShader. However, when I try to include shader.h in my project which uses Sparky's collision dll(Sc_Collision.h), I get these nasty errors:
1>Compiling...
1>Main.cpp
1>Linking...
1>shaderdata.lib(shaderdata.obj) : error LNK2005: "struct sObject * (__cdecl* g_GetObject)(int)" (?g_GetObject@@3P6APAUsObject@@H@ZA) already defined in SC_Collision.lib(dllmain.obj)
1>shaderdata.lib(shaderdata.obj) : error LNK2005: "bool bInitialised" (?bInitialised@@3_NA) already defined in SC_Collision.lib(dllmain.obj)
1>shaderdata.lib(shaderdata.obj) : error LNK2005: "bool __cdecl CheckInit(void)" (?CheckInit@@YA_NXZ) already defined in SC_Collision.lib(dllmain.obj)
1>Debug\Project.exe : fatal error LNK1169: one or more multiply defined symbols found
Does anyone have an idea how to fix this?
I'm using VS C++ 2008 express.
All help appreciated.