Maroho
07-04-2010 15:49:30
I'm attempting to integrate the OgreNewt Player Controller into my own project. I've added the header and source files (OgreNewt_PlayerController.h and OgreNewt_PlayerController.cpp) to my project, and I've also included both the OgreNewt include and library folders so it can find all the other files it needs.
I haven't integrated it into my program in any way beyond just adding the header and source files. OgreNewt_PlayerController.cpp compiles fine, but when I compile the whole program I get these errors:
I have parts of OgreNewt already integrated (through MinimalOgreNewt), so I know that works. I can also get the PlayerController demo in OgreNewt to work fine, so what am I missing when I try to put it into my own project?
I haven't integrated it into my program in any way beyond just adding the header and source files. OgreNewt_PlayerController.cpp compiles fine, but when I compile the whole program I get these errors:
Error 2 error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl NewtonCustomJoint::operator delete(void *)" (__imp_??3NewtonCustomJoint@@SAXPAX@Z) referenced in function __unwindfunclet$??0PlayerController@OgreNewt@@QAE@PAVBody@1@MM@Z$0 OgreNewt_PlayerController.obj
Error 3 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CustomPlayerController::CustomPlayerController(class dMatrix const &,struct NewtonBody const *,float,float)" (__imp_??0CustomPlayerController@@QAE@ABVdMatrix@@PBUNewtonBody@@MM@Z) referenced in function "public: __thiscall OgreNewt::PlayerController::PlayerController(class OgreNewt::Body *,float,float)" (??0PlayerController@OgreNewt@@QAE@PAVBody@1@MM@Z) OgreNewt_PlayerController.obj
Error 4 error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void * __cdecl NewtonCustomJoint::operator new(unsigned int)" (__imp_??2NewtonCustomJoint@@SAPAXI@Z) referenced in function "public: __thiscall OgreNewt::PlayerController::PlayerController(class OgreNewt::Body *,float,float)" (??0PlayerController@OgreNewt@@QAE@PAVBody@1@MM@Z) OgreNewt_PlayerController.obj
Error 5 error LNK2001: unresolved external symbol "public: virtual void __thiscall NewtonCustomJoint::GetInfo(struct NewtonJointRecord *)const " (?GetInfo@NewtonCustomJoint@@UBEXPAUNewtonJointRecord@@@Z) OgreNewt_PlayerController.obj
Error 6 error LNK2001: unresolved external symbol "protected: virtual void __thiscall CustomPlayerController::SubmitConstraints(float,int)" (?SubmitConstraints@CustomPlayerController@@MAEXMH@Z) OgreNewt_PlayerController.obj
Error 7 error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CustomPlayerController::~CustomPlayerController(void)" (__imp_??1CustomPlayerController@@UAE@XZ) referenced in function "public: virtual void * __thiscall CustomPlayerController::`scalar deleting destructor'(unsigned int)" (??_GCustomPlayerController@@UAEPAXI@Z) OgreNewt_PlayerController.obj
Error 8 error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CustomPlayerController::GetVelocity(float &,float &,float &)const " (__imp_?GetVelocity@CustomPlayerController@@QBEXAAM00@Z) referenced in function "public: void __thiscall OgreNewt::PlayerController::getVelocity(float &,float &,class Ogre::Radian &)const " (?getVelocity@PlayerController@OgreNewt@@QBEXAAM0AAVRadian@Ogre@@@Z) OgreNewt_PlayerController.obj
Error 9 error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CustomPlayerController::SetVelocity(float,float,float)" (__imp_?SetVelocity@CustomPlayerController@@QAEXMMM@Z) referenced in function "public: void __thiscall OgreNewt::PlayerController::setVelocity(float,float,class Ogre::Radian)" (?setVelocity@PlayerController@OgreNewt@@QAEXMMVRadian@Ogre@@@Z) OgreNewt_PlayerController.obj
Error 10 error LNK2019: unresolved external symbol "__declspec(dllimport) public: float __thiscall CustomPlayerController::GetPlayerHeight(void)const " (__imp_?GetPlayerHeight@CustomPlayerController@@QBEMXZ) referenced in function "public: float __thiscall OgreNewt::PlayerController::getPlayerHeight(void)const " (?getPlayerHeight@PlayerController@OgreNewt@@QBEMXZ) OgreNewt_PlayerController.obj
Error 11 error LNK2019: unresolved external symbol "__declspec(dllimport) public: float __thiscall CustomPlayerController::GetPlayerStairHeight(void)const " (__imp_?GetPlayerStairHeight@CustomPlayerController@@QBEMXZ) referenced in function "protected: virtual void __thiscall OgreNewt::PlayerController::showDebugData(class Ogre::SceneNode *)" (?showDebugData@PlayerController@OgreNewt@@MAEXPAVSceneNode@Ogre@@@Z) OgreNewt_PlayerController.obj
Error 12 error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct NewtonCollision const * __thiscall CustomPlayerController::GetStairStepShape(void)const " (__imp_?GetStairStepShape@CustomPlayerController@@QBEPBUNewtonCollision@@XZ) referenced in function "protected: virtual void __thiscall OgreNewt::PlayerController::showDebugData(class Ogre::SceneNode *)" (?showDebugData@PlayerController@OgreNewt@@MAEXPAVSceneNode@Ogre@@@Z) OgreNewt_PlayerController.obj
Error 13 error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct NewtonCollision const * __thiscall CustomPlayerController::GetSensorShape(void)const " (__imp_?GetSensorShape@CustomPlayerController@@QBEPBUNewtonCollision@@XZ) referenced in function "protected: virtual void __thiscall OgreNewt::PlayerController::showDebugData(class Ogre::SceneNode *)" (?showDebugData@PlayerController@OgreNewt@@MAEXPAVSceneNode@Ogre@@@Z) OgreNewt_PlayerController.obj
Error 14 error LNK2019: unresolved external symbol "public: __thiscall dMatrix::dMatrix(class dQuaternion const &,class dVector const &)" (??0dMatrix@@QAE@ABVdQuaternion@@ABVdVector@@@Z) referenced in function "protected: virtual void __thiscall OgreNewt::PlayerController::showDebugData(class Ogre::SceneNode *)" (?showDebugData@PlayerController@OgreNewt@@MAEXPAVSceneNode@Ogre@@@Z) OgreNewt_PlayerController.obj
Error 15 fatal error LNK1120: 13 unresolved externals bin\Debug\Marble3D.exe
I have parts of OgreNewt already integrated (through MinimalOgreNewt), so I know that works. I can also get the PlayerController demo in OgreNewt to work fine, so what am I missing when I try to put it into my own project?