Posted: 13th May 2005 18:33
I just purchased Dark Game SDK and am having trouble compiling the sample solution. I get the following list of errors when I try to build the solution:
World error LNK2005: "void __cdecl dbUpdateBSP(void)" (?dbUpdateBSP@@YAXXZ) already defined in darksdk.lib(DarkSDKWorld.obj)
World warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
World error LNK2005: "void __cdecl dbDeleteBSP(void)" (?dbDeleteBSP@@YAXXZ) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "void __cdecl dbStartBSP(void)" (?dbStartBSP@@YAXXZ) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "void __cdecl dbEndBSP(void)" (?dbEndBSP@@YAXXZ) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "void __cdecl dbLoadBSP(char *,char *)" (?dbLoadBSP@@YAXPAD0@Z) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "void __cdecl dbSetBSPCamera(int)" (?dbSetBSPCamera@@YAXH@Z) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "void __cdecl dbSetBSPCameraCollision(int,int,float,int)" (?dbSetBSPCameraCollision@@YAXHHMH@Z) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "void __cdecl dbSetBSPObjectCollision(int,int,float,int)" (?dbSetBSPObjectCollision@@YAXHHMH@Z) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "void __cdecl dbSetBSPCollisionThreshhold(int,float)" (?dbSetBSPCollisionThreshhold@@YAXHM@Z) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "void __cdecl dbSetBSPCollisionOff(int)" (?dbSetBSPCollisionOff@@YAXH@Z) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "void __cdecl dbSetBSPCameraCollisionRadius(int,int,float,float,float)" (?dbSetBSPCameraCollisionRadius@@YAXHHMMM@Z) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "void __cdecl dbSetBSPObjectCollisionRadius(int,int,float,float,float)" (?dbSetBSPObjectCollisionRadius@@YAXHHMMM@Z) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "void __cdecl dbSetBSPCollisionHeightAdjustment(int,float)" (?dbSetBSPCollisionHeightAdjustment@@YAXHM@Z) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "void __cdecl dbSetBSPMultiTexturingOn(void)" (?dbSetBSPMultiTexturingOn@@YAXXZ) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "void __cdecl dbSetBSPMultiTexturingOff(void)" (?dbSetBSPMultiTexturingOff@@YAXXZ) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "void __cdecl dbProcessBSPCollision(int)" (?dbProcessBSPCollision@@YAXH@Z) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "int __cdecl dbBSPCollisionHit(int)" (?dbBSPCollisionHit@@YAHH@Z) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "float __cdecl dbBSPCollisionX(int)" (?dbBSPCollisionX@@YAMH@Z) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "float __cdecl dbBSPCollisionY(int)" (?dbBSPCollisionY@@YAMH@Z) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2005: "float __cdecl dbBSPCollisionZ(int)" (?dbBSPCollisionZ@@YAMH@Z) already defined in darksdk.lib(DarkSDKWorld.obj)
World error LNK2019: unresolved external symbol "void __cdecl UpdateBSP(void)" (?UpdateBSP@@YAXXZ) referenced in function "void __cdecl dbUpdateBSP(void)" (?dbUpdateBSP@@YAXXZ)
World error LNK2019: unresolved external symbol "void __cdecl StartBSP(void)" (?StartBSP@@YAXXZ) referenced in function "void __cdecl dbStartBSP(void)" (?dbStartBSP@@YAXXZ)
World error LNK2019: unresolved external symbol "void __cdecl EndBSP(void)" (?EndBSP@@YAXXZ) referenced in function "void __cdecl dbEndBSP(void)" (?dbEndBSP@@YAXXZ)
World error LNK2019: unresolved external symbol "void __cdecl LoadEx(unsigned long,unsigned long)" (?LoadEx@@YAXKK@Z) referenced in function "void __cdecl dbLoadBSP(char *,char *)" (?dbLoadBSP@@YAXPAD0@Z)
World error LNK2019: unresolved external symbol "void __cdecl DeleteEx(void)" (?DeleteEx@@YAXXZ) referenced in function "void __cdecl dbDeleteBSP(void)" (?dbDeleteBSP@@YAXXZ)
World error LNK2019: unresolved external symbol "void __cdecl SetupCullingCameraEx(int)" (?SetupCullingCameraEx@@YAXH@Z) referenced in function "void __cdecl dbSetBSPCamera(int)" (?dbSetBSPCamera@@YAXH@Z)
World error LNK2019: unresolved external symbol "void __cdecl SetupCameraCollision(int,int,float,int)" (?SetupCameraCollision@@YAXHHMH@Z) referenced in function "void __cdecl dbSetBSPCameraCollision(int,int,float,int)" (?dbSetBSPCameraCollision@@YAXHHMH@Z)
World error LNK2019: unresolved external symbol "void __cdecl SetupObjectCollision(int,int,float,int)" (?SetupObjectCollision@@YAXHHMH@Z) referenced in function "void __cdecl dbSetBSPObjectCollision(int,int,float,int)" (?dbSetBSPObjectCollision@@YAXHHMH@Z)
World error LNK2019: unresolved external symbol "void __cdecl SetCollisionThreshholdEx(int,float)" (?SetCollisionThreshholdEx@@YAXHM@Z) referenced in function "void __cdecl dbSetBSPCollisionThreshhold(int,float)" (?dbSetBSPCollisionThreshhold@@YAXHM@Z)
World error LNK2019: unresolved external symbol "void __cdecl SetupCollisionOffEx(int)" (?SetupCollisionOffEx@@YAXH@Z) referenced in function "void __cdecl dbSetBSPCollisionOff(int)" (?dbSetBSPCollisionOff@@YAXH@Z)
World error LNK2019: unresolved external symbol "void __cdecl SetCameraCollisionRadiusEx(int,int,float,float,float)" (?SetCameraCollisionRadiusEx@@YAXHHMMM@Z) referenced in function "void __cdecl dbSetBSPCameraCollisionRadius(int,int,float,float,float)" (?dbSetBSPCameraCollisionRadius@@YAXHHMMM@Z)
World error LNK2019: unresolved external symbol "void __cdecl SetObjectCollisionRadiusEx(int,int,float,float,float)" (?SetObjectCollisionRadiusEx@@YAXHHMMM@Z) referenced in function "void __cdecl dbSetBSPObjectCollisionRadius(int,int,float,float,float)" (?dbSetBSPObjectCollisionRadius@@YAXHHMMM@Z)
World error LNK2019: unresolved external symbol "void __cdecl SetCollisionHeightAdjustmentEx(int,float)" (?SetCollisionHeightAdjustmentEx@@YAXHM@Z) referenced in function "void __cdecl dbSetBSPCollisionHeightAdjustment(int,float)" (?dbSetBSPCollisionHeightAdjustment@@YAXHM@Z)
World error LNK2019: unresolved external symbol "void __cdecl SetHardwareMultiTexturingOnEx(void)" (?SetHardwareMultiTexturingOnEx@@YAXXZ) referenced in function "void __cdecl dbSetBSPMultiTexturingOn(void)" (?dbSetBSPMultiTexturingOn@@YAXXZ)
World error LNK2019: unresolved external symbol "void __cdecl SetHardwareMultiTexturingOffEx(void)" (?SetHardwareMultiTexturingOffEx@@YAXXZ) referenced in function "void __cdecl dbSetBSPMultiTexturingOff(void)" (?dbSetBSPMultiTexturingOff@@YAXXZ)
World error LNK2019: unresolved external symbol "void __cdecl ProcessCollisionEx(int)" (?ProcessCollisionEx@@YAXH@Z) referenced in function "void __cdecl dbProcessBSPCollision(int)" (?dbProcessBSPCollision@@YAXH@Z)
World error LNK2019: unresolved external symbol "int __cdecl GetCollisionResponseEx(int)" (?GetCollisionResponseEx@@YAHH@Z) referenced in function "int __cdecl dbBSPCollisionHit(int)" (?dbBSPCollisionHit@@YAHH@Z)
World error LNK2019: unresolved external symbol "unsigned long __cdecl GetCollisionXEx(int)" (?GetCollisionXEx@@YAKH@Z) referenced in function "float __cdecl dbBSPCollisionX(int)" (?dbBSPCollisionX@@YAMH@Z)
World error LNK2019: unresolved external symbol "unsigned long __cdecl GetCollisionYEx(int)" (?GetCollisionYEx@@YAKH@Z) referenced in function "float __cdecl dbBSPCollisionY(int)" (?dbBSPCollisionY@@YAMH@Z)
World error LNK2019: unresolved external symbol "unsigned long __cdecl GetCollisionZEx(int)" (?GetCollisionZEx@@YAKH@Z) referenced in function "float __cdecl dbBSPCollisionZ(int)" (?dbBSPCollisionZ@@YAMH@Z)
World fatal error LNK1120: 20 unresolved externals
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Road Terrain\Main.cpp(68): error C3861: 'dbRGBR': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Road Terrain\Main.cpp(79): error C3861: 'dbUnLockPixels': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Particle\Main.cpp(34): error C3861: 'dbSetParticleEmissions': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Particle\Main.cpp(46): error C3861: 'dbPositionParticlesEmissions': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Matrix\Main.cpp(14): error C3861: 'dbRGB': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(102): error C3861: 'dbSetParticleEmissions': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(247): warning C4288: nonstandard extension used : 'sc' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(247): warning C4288: nonstandard extension used : 'sc' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(247): warning C4288: nonstandard extension used : 'sc' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(249): warning C4288: nonstandard extension used : 'sc' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(250): warning C4288: nonstandard extension used : 'sc' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(253): warning C4288: nonstandard extension used : 'sc' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(253): warning C4288: nonstandard extension used : 'sc' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(253): warning C4288: nonstandard extension used : 'sc' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(255): warning C4288: nonstandard extension used : 'sc' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(256): warning C4288: nonstandard extension used : 'sc' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(294): error C3861: 'dbMatrixHeight': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(359): warning C4288: nonstandard extension used : 'sc' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(460): error C3861: 'dbMatrixHeight': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(505): error C3861: 'dbSetParticleEmissions': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(522): error C3861: 'dbSetParticleEmissions': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(578): error C3861: 'dbRGB': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(578): error C3861: 'dbRGB': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(578): error C3861: 'dbRGB': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(578): error C3861: 'dbRGB': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(583): error C3861: 'dbRGB': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(583): error C3861: 'dbRGB': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(583): error C3861: 'dbRGB': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\LType\Main.cpp(583): error C3861: 'dbRGB': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Image showcase\Main.cpp(19): error C3861: 'dbSetTextTransparent': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(230): error C3861: 'dbSetObjectAmbient': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(255): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(415): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(418): warning C4244: '-=' : conversion from 'float' to 'int', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(443): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(454): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(461): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(465): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(518): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(518): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(590): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(682): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(687): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(687): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(689): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(689): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(690): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(690): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(696): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(696): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(696): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(696): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(1128): error C3861: 'dbSetObjectAmbient': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(1186): error C3861: 'dbSetObjectAmbient': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Dark Dungeon\Demo.cpp(1695): warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Camera\Main.cpp(11): error C3861: 'dbRGB': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Camera\Main.cpp(65): error C3861: 'dbRGB': identifier not found, even with argument-dependent lookup
c:\Program Files\The Game Creators\Dark Game SDK - FREEWARE Edition\Samples\Visual Studio 7\Animation Showcase\Main.cpp(19): error C3861: 'dbSetTextTransparent': identifier not found, even with argument-dependent lookup
Only half of the projects generate EXE from the build. The Example 1 project builds fine, so I am assuming that my VS.NET environment is configured correctly, so I am a little lost as to what might be the problem.
Any help would be greatly appreciated.