Okay, I'm trying to set up PhysX in VS2008, but once I have all of the libraries and dependencies and include folders set, I still get errors! With just the code
#define NOMINMAX
#include <windows.h>
#include "DarkGDK.h"
#include "NxPhysics.h"
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
gPhysicsSDK = NxCreatePhysicsSDK(NX_PHYSICS_SDK_VERSION, NULL, NULL);
if(!gPhysicsSDK)dbPrint("error!");
while ( LoopGDK ( ) )
{
dbSync ( );
}
return;
}
as directed from the PhysX documentation. So why does it give me the error
Quote: "error C2065: 'gPhysicsSDK' : undeclared identifier"
? If you've used PhysX in DGDK before, what did you do to get it working?
Tunnel vision yet? Have a carrot!