ok so i have some very basic code just a simple level(sandbox level) for testing things but soon as i start to try and include any type of physics inc just the phy start and sync it errors and wont compile any idear's?
#include "DarkGDK.h"
#include "DarkPhysics.h"
void SetupScene ( void );
void SetupPhys ( void );
void sceneFPS ( void );
void DarkGDK ( void )
{
dbPhyStart ( );
SetupScene ( );
while ( LoopGDK ( ) )
{
sceneFPS ( );
dbControlCameraUsingArrowKeys ( 1, 10, 8 );
dbSync ( );
}
return;
}
void sceneFPS ( void )
{
char szFPS [ 256 ] = "";
strcpy ( szFPS, "fps = " );
strcat ( szFPS, dbStr ( dbScreenFPS ( ) ) );
dbText ( dbScreenWidth ( ) - 20 - dbTextWidth ( szFPS ), dbScreenHeight ( ) - 40, szFPS );
}
void SetupScene ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbAutoCamOff ( );
dbMakeCamera ( 1 );
dbPositionCamera ( 1, 0, 150, 0 );
dbSetCameraRange ( 1, 100, 40000 );
dbLoadObject ( "MapLM\\Level.dbo", 1 );
dbLoadObject ( "Skybox\\skybox2.x", 2 );
dbSetObjectLight ( 2, 0 );
dbSetObjectTexture ( 2, 3, 2 );
dbScaleObject ( 2, 50000, 50000, 50000 );
}
void SetupPhys ( void )
{
}
this is the errors i get
------ Build started: Project: Particles, Configuration: Release Win32 ------
Compiling...
Main.cpp
Linking...
Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbPhyStart(void)" (?dbPhyStart@@YAXXZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
Release\Particles.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Damian\My Documents\Visual Studio 2008\Projects\Particles\Particles\Release\BuildLog.htm"
Particles - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
the header is in the Standerd GDK inc and lib folders and i just used the wizard to start the project ive included the dlls in win32
directory in windows but to make sure also in the exe dir.
the above code works fine and loads no problem but then stops the moment i try to add anything to do with the physics.
Amd Athlon 64 3000+ Newcastle , Asus K8N4-E Deluxe, 1.50GB DDR Ram , XFX Geforce 6600 Extreame Edition 512MB DDR2 Ram
GDK,DarkPhysics,DarkShader,DarkLights,DarkAI,BlueGUI,Unity