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 GDK / PhysX in VS2008?

Author
Message
Mister Fuzzy
13
Years of Service
User Offline
Joined: 27th Feb 2011
Location: XNA
Posted: 17th Jan 2012 06:14 Edited at: 17th Jan 2012 06:15
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

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!
JTK
14
Years of Service
User Offline
Joined: 10th Feb 2010
Location:
Posted: 17th Jan 2012 06:33
You have to declare its type. Ie: int gPhysicsSDK = ...

make sure you replace int with the return value type of the function.

Although the g prefix would indicate it as a global variable which should be declared before the DarkGDK FUNCTION.
Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 17th Jan 2012 13:27
Try this.



Login to post a reply

Server time is: 2024-04-27 04:42:02
Your offset time is: 2024-04-27 04:42:02