Sign in to follow this  

error with Physics ???

Recommended Posts

when i compiled this code , i got this error message !! fatal error C1083: Cannot open include file: 'NxFoundation.h': No such file or directory Error executing cl.exe.



#define NOMINMAX


#pragma comment(lib,"PhysXLoader.lib");
#pragma comment(lib,"NxCharacter.lib");
#pragma comment(lib,"NxCooking.lib");
#pragma comment(lib,"NxExtensions");

static NxPhysicsSDK* gPhysicsSDK = NULL;

int main(int argc,char **argv)
	gPhysicsSDK = NxCreatePhysicsSDK(NX_PHYSICS_SDK_VERSION);
	return 1;
how to solve this error ??

Share this post

Link to post
Share on other sites
Is NxFoundation.h the name of a file from a library that you are using? If so, make sure that you have told your IDE where include directories are. Where you do that depends on which IDE you are using, but it's usually somewhere like Project->Properties->Librarian->Additional Library Directories (that's where it is in Visual C++ 2005 Express Edition, at least).

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this