Jump to content
  • Advertisement
Sign in to follow this  

error with Physics ???

This topic is 3571 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

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.
#include<stdio.h>

#include<gl\glut.h>
#include<gl\gl.h>

#include<Physics\include\NxPhysics.h>

#define NOMINMAX

#include<windows.h>

#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);
	gPhysics->release();
	return 1;
}
how to solve this error ??

Share this post


Link to post
Share on other sites
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!