Hi It's my first post here and new to GDK and DPhysics. Im developing a game similar to
UNO stacko. I needed Dphysics for the creating dynamics of the blocks so I decided to get one. I just bought the
Dark Physics GDK, and had problems using this plugin.
I dunno if I've linked it properly or just wrong coding. Similar to what
TRY had first encountered, i can't seem to compile the code
dbPhyStart() I added the DarkPhysics header file but didn't include the pragma line for the library similar what
TRY did:
Quote: "#include "DarkGDK.h"
#include "DarkPhysics.h"
#pragma comment ( lib, "DarkPhysics.lib" )"
My header files:
#include "DarkGDK.h"
#include "DarkPhysics.h"
#include "UNONGA.h"
BTW my code is patterned from Dark Invaders sample, my code:
void GamePlay (void)
{
dbCLS();
dbFlushVideoMemory ();
dbPlayMusic (2);
dbLoopMusic (2);
UNOText (0, 348, 30, "STACKING BLOCKS...", true);
dbSetObjectLight (47, 0);
dbSetObjectTexture (47, 2, 2);
dbScaleObject (47, 400, 300, 400);
dbSetObjectLight (46, 0);
dbPhyStart ( );
dbPhySetDynamicFriction ( 15.0 );
dbPhyMakeRigidBodyStaticBox ( 46 );
dbPositionObject (46, 0, -18, 0);
dbSprite (200, 0, 0, 200);
dbPhySetDynamicFriction ( 10.0 );
BlockSetup ();
BlockStacking ();
BlockPhysics ();
UNOTextClear ();
dbFlushVideoMemory ();
GameMode = eGameProper;
}
And here's my Output build:
Quote: "1>------ Build started: Project: UNONGA, Configuration: Debug Win32 ------
1>Compiling...
1>UNONGA.cpp
1>Linking...
1>UNONGA.obj : error LNK2019: unresolved external symbol "void __cdecl dbPhySetDynamicFriction(float)" (?dbPhySetDynamicFriction@@YAXM@Z) referenced in function "void __cdecl GamePlay(void)" (?GamePlay@@YAXXZ)
1>UNONGA.obj : error LNK2019: unresolved external symbol "void __cdecl dbPhyMakeRigidBodyStaticBox(int)" (?dbPhyMakeRigidBodyStaticBox@@YAXH@Z) referenced in function "void __cdecl GamePlay(void)" (?GamePlay@@YAXXZ)
1>UNONGA.obj : error LNK2019: unresolved external symbol "void __cdecl dbPhySetStaticFriction(float)" (?dbPhySetStaticFriction@@YAXM@Z) referenced in function "void __cdecl GamePlay(void)" (?GamePlay@@YAXXZ)
1>UNONGA.obj : error LNK2019: unresolved external symbol "void __cdecl dbPhyStart(int,int,int)" (?dbPhyStart@@YAXHHH@Z) referenced in function "void __cdecl GamePlay(void)" (?GamePlay@@YAXXZ)
1>Debug\UNONGA.exe : fatal error LNK1120: 4 unresolved externals
1>Build log was saved at "file://c:\Users\KUYA\Documents\Visual Studio 2008\Projects\UNONGA\UNONGA\Debug\BuildLog.htm"
1>UNONGA - 5 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =========="
My Linkers are:
-----------------
C:\Program Files\The Game Creators\Dark GDK\Include
C:\Program Files\Microsoft DirectX SDK (August 2007)\Include
C:\Program Files\The Game Creators\Dark GDK\Lib\vs9
C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86
Im using:
----------------
Vista Home Premium
Latest drivers