Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / error when i use darkphysics in darkgdk

Author
Message
mouness
16
Years of Service
User Offline
Joined: 21st Mar 2008
Location:
Posted: 26th Mar 2008 01:20
hi, i bought dark physics and when i need to run sample code in dark gdk with vs c++ 2008 i face this error :

Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbPhyUpdate(void)" (?dbPhyUpdate@@YAXXZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbPhyMakeRigidBodyDynamicBox(int)" (?dbPhyMakeRigidBodyDynamicBox@@YAXH@Z) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbPhyMakeRigidBodyStaticBox(int)" (?dbPhyMakeRigidBodyStaticBox@@YAXH@Z) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbPhyStart(void)" (?dbPhyStart@@YAXXZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)


why????????? also i load the header #include "DarkPhysics.h"
thanks for helping ........
D Bellis
17
Years of Service
User Offline
Joined: 6th Jul 2006
Location: UK
Posted: 26th Mar 2008 20:23
Have you added a reference to DarkPhysics.lib in the Project Properties->Configuration Properties->Linker->Input->Additional Dependecies ?

This needs to be done for both Debug and Release builds.


thats what i did to fix that

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
mouness
16
Years of Service
User Offline
Joined: 21st Mar 2008
Location:
Posted: 27th Mar 2008 15:06
ok .i do what are say but i still have these errors:

//////////////////////////////////////////
DarkPhysics.lib(EngineUpdate.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
Creating library Debug\Dark GDK - Game2.lib and object Debug\Dark GDK - Game2.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol __malloc_dbg
libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol __free_dbg
libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
Debug\Dark GDK - Game2.exe : fatal error LNK1120: 3 unresolved externals
Build log was saved at "file://d:\Program Files\The Game Creators\Dark GDK\Samples\Dark Physics\Dark GDK - Game2\Dark GDK - Game2\Debug\BuildLog.htm"
Dark GDK - Game2 - 4 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
////////////////////////////////////////////////
why these errors happen with me??. this is my code :

#include "DarkGDK.h"
#include "DarkPhysics.h"
//#include "DarkPhysics.lib"
// the main entry point for the application is this function
void DarkGDK ( void )
{dbPhyStart();
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate (200 );
dbBackdropOff();

dbMakeObjectBox(1,50,1,50);
dbPhyMakeRigidBodyStaticBox (1 );
dbMakeObjectCube(2,5);
dbPositionObject(2, 0, 10, -26);
dbPhyMakeRigidBodyDynamicBox ( 2);
dbPositionCamera(0,10,-50);
// our main loop
while ( LoopGDK ( ) )
{
// update the screen

dbPhyUpdate (0 );
dbSync ( );
}

// return back to windows
return;
}

/////////
but the samples work good
thanks for any help
Movian
16
Years of Service
User Offline
Joined: 5th Mar 2008
Location:
Posted: 29th Mar 2008 04:50 Edited at: 29th Mar 2008 05:04
i too get these same errors when trying to compile code when i include the DarkPhysics header.


~Edit~ after some more searching :S

found this which fixed my problem
http://forum.thegamecreators.com/?m=forum_view&t=122531&b=22
mouness
16
Years of Service
User Offline
Joined: 21st Mar 2008
Location:
Posted: 29th Mar 2008 18:54
thanks man its solve my problem

Login to post a reply

Server time is: 2024-05-19 23:54:46
Your offset time is: 2024-05-19 23:54:46