我正在尝试使用MinGW编译一个PhysX sample,但我得到了以下错误:
undefined reference to `physx::PxProfileZoneManager::createProfileZoneManager(physx::PxFoundation*)'
undefined reference to `physx::PxDefaultErrorCallback::~PxDefaultErrorCallback()'
undefined reference to `physx::PxDefaultErrorCallback::PxDefaultErrorCallback()'我的编译命令:
g++.exe -o Test.exe Test.cpp -Iinc -Llib -lPhysX3Common_x86 -lPhysX3_x86 -lPhysX3Extensions -lfreeglut -lopengl32 -lPhysX3Extensions -lglu32现在我的问题是:这些方法存储在哪些.lib文件中?
发布于 2013-02-22 15:18:13
PhysXProfileSDK.lib.中应包含createProfileZoneManager()符号
实际上应该在PhysX3Extensions.lib.中使用PxDefaultErrorCallback()构造函数和析构函数符号您的compile命令已经列出了库两次,不过这应该不是问题。
https://stackoverflow.com/questions/14901975
复制相似问题