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:
And my VC++ Directories - > Library Directories contains:
However when I try to declare a PxScene I get an error saying that the term is not defined! What is wrong here?!
2 replies to this topic
Members - Reputation: 1160
Posted 22 July 2012 - 02:18 AM
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.