Jump to content
  • Advertisement
Sign in to follow this  
noatom

PhysX include errors

This topic is 2216 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This is all i use in my cpp file that bases on PhysX:
[source lang="cpp"]#include <pxphysicsapi.h>
#include <pxdefaulterrorcallback.h>
#include <pxdefaultallocator.h>

#pragma comment(lib, "PhysX3_x86.lib")
#pragma comment(lib, "Foundation")
#pragma comment(lib, "PhysX3Extensions.lib")[/source]

And my VC++ Directories - > Include Directories contains:
[source lang="cpp"]D:\Users\ait\Desktop\PhysX-3.2_PC_SDK_Core\Samples\SampleFramework\framework\include
D:\Users\ait\Desktop\PhysX-3.2_PC_SDK_Core\Include\pxtask
D:\Users\ait\Desktop\PhysX-3.2_PC_SDK_Core\Include\common
D:\Users\ait\Desktop\PhysX-3.2_PC_SDK_Core\Include\extensions
D:\Users\ait\Desktop\PhysX-3.2_PC_SDK_Core\Include\foundation\windows
D:\Users\ait\Desktop\PhysX-3.2_PC_SDK_Core\Include[/source]

And my VC++ Directories - > Library Directories contains:
[source lang="cpp"]D:\Users\ait\Desktop\PhysX-3.2_PC_SDK_Core\Lib\win32[/source]



However when I try to declare a PxScene I get an error saying that the term is not defined! What is wrong here?!

Share this post


Link to post
Share on other sites
Advertisement
If that's all you use in your cpp file, then you need to put the name of the file you want to include after the #include, i.e. #include "filename.h" where filename is the filename of the header file you want to include. This should fix the problem unless the forum software ate the #include filenames for some reason.

Share this post


Link to post
Share on other sites
=)) the forum ate those filenames....you wouldn't think I try to use PhysX and I don't know how to use include properly do you? Anyway,I fixed it now,thanks.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!