1

I'm trying to compile a PhysX sample using MinGW but I'm getting these errors:

undefined reference to `physx::PxProfileZoneManager::createProfileZoneManager(physx::PxFoundation*)'
undefined reference to `physx::PxDefaultErrorCallback::~PxDefaultErrorCallback()'
undefined reference to `physx::PxDefaultErrorCallback::PxDefaultErrorCallback()'

My compile command:

g++.exe -o Test.exe Test.cpp -Iinc -Llib -lPhysX3Common_x86 -lPhysX3_x86 -lPhysX3Extensions -lfreeglut -lopengl32 -lPhysX3Extensions -lglu32

Now my question is: in what .lib file(s) are these methods stored?

das_j
  • 4,444
  • 5
  • 31
  • 47

1 Answers1

2

The createProfileZoneManager() symbol should be in PhysXProfileSDK.lib.

The PxDefaultErrorCallback() constructor and destructor symbols really should be in PhysX3Extensions.lib. Your compile command already lists the lib twice, though that should not be an issue.

Lou Rohan
  • 21
  • 2