Hello,
I was wondering how to make dark physics work in DarkGDK with Vistual C++ Express Edition 2008. I keep getting an error while compiling it.
#include "DarkGDK.h"
#include <DarkPhysics.h>
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbPhyStart();
while ( LoopGDK ( ) )
{
dbPhyUpdate();
dbSync ( );
}
return;
}
This is the code I am compiling. I was just testing if it will work after I installed it. I got DarkPhysics for GDK with dark game studio.
Here is the error I keep getting
1>------ Build started: Project: Game, Configuration: Debug Win32 ------
1>Compiling...
1>Main.cpp
1>Linking...
1>LINK : Debug\Game.exe not found or not built by the last incremental link; performing full link
1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbPhyUpdate(void)" (?dbPhyUpdate@@YAXXZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbPhyStart(void)" (?dbPhyStart@@YAXXZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Debug\Game.exe : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\Game\Game\Debug\BuildLog.htm"
1>Game - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I hope some one can help me with it. I worked with C++ before so I am not sure if I need to link a library or some thing.