OgreNewt_CollisionSerializer.cpp(23): error C2065: 'mpfFile'

MindCalamity

05-08-2011 09:47:08

I tried compiling OgreNewt last night, and after generating the project files with CMake I simply tried to build it and am getting the following error:

2>D:\Libraries\newton20\src\OgreNewt_CollisionSerializer.cpp(23): error C2065: 'mpfFile' : undeclared identifier
2>D:\Libraries\newton20\src\OgreNewt_CollisionSerializer.cpp(25): error C2065: 'mpfFile' : undeclared identifier
2>D:\Libraries\newton20\src\OgreNewt_CollisionSerializer.cpp(33): error C2065: 'mpfFile' : undeclared identifier


It's in the function CollisionSerializer::exportCollision:

if( !collision )
OGRE_EXCEPT(Ogre::Exception::ERR_INVALIDPARAMS, "Argument collision is NULL","CollisionSerializer::exportCollision");



mpfFile=fopen(filename.c_str(),"wb");

if (!mpfFile)
{
OGRE_EXCEPT(Ogre::Exception::ERR_INVALIDPARAMS, "Unable to open file " + filename + " for writing","CollisionSerializer::exportCollision");
}

NewtonCollisionSerialize(collision->getWorld()->getNewtonWorld(), collision->m_col, &CollisionSerializer::_newtonSerializeCallback, this);


fclose(mpfFile);


I tried declaring it as a std::FILE but that gave me linker errors:

2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CustomHinge::EnableLimits(bool)" (__imp_?EnableLimits@CustomHinge@@QAEX_N@Z) referenced in function "public: void __thiscall OgreNewt::Hinge::enableLimits(bool)" (?enableLimits@Hinge@OgreNewt@@QAEX_N@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CustomHinge::SetLimis(float,float)" (__imp_?SetLimis@CustomHinge@@QAEXMM@Z) referenced in function "public: void __thiscall OgreNewt::Hinge::setLimits(class Ogre::Radian,class Ogre::Radian)" (?setLimits@Hinge@OgreNewt@@QAEXVRadian@Ogre@@0@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: float __thiscall CustomHinge::GetJointAngle(void)const " (__imp_?GetJointAngle@CustomHinge@@QBEMXZ) referenced in function "public: class Ogre::Radian __thiscall OgreNewt::Hinge::getJointAngle(void)const " (?getJointAngle@Hinge@OgreNewt@@QBE?AVRadian@Ogre@@XZ)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: float __thiscall CustomHinge::GetJointOmega(void)const " (__imp_?GetJointOmega@CustomHinge@@QBEMXZ) referenced in function "public: class Ogre::Radian __thiscall OgreNewt::Hinge::getJointAngularVelocity(void)const " (?getJointAngularVelocity@Hinge@OgreNewt@@QBE?AVRadian@Ogre@@XZ)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class dVector __thiscall CustomHinge::GetPinAxis(void)const " (__imp_?GetPinAxis@CustomHinge@@QBE?AVdVector@@XZ) referenced in function "public: class Ogre::Vector3 __thiscall OgreNewt::Hinge::getJointPin(void)const " (?getJointPin@Hinge@OgreNewt@@QBE?AVVector3@Ogre@@XZ)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CustomSlider::EnableLimits(bool)" (__imp_?EnableLimits@CustomSlider@@QAEX_N@Z) referenced in function "public: void __thiscall OgreNewt::Slider::enableLimits(bool)" (?enableLimits@Slider@OgreNewt@@QAEX_N@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CustomSlider::SetLimis(float,float)" (__imp_?SetLimis@CustomSlider@@QAEXMM@Z) referenced in function "public: void __thiscall OgreNewt::Slider::setLimis(float,float)" (?setLimis@Slider@OgreNewt@@QAEXMM@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CustomKinematicController::SetPickMode(int)" (__imp_?SetPickMode@CustomKinematicController@@QAEXH@Z) referenced in function "public: void __thiscall OgreNewt::KinematicController::setPickingMode(int)" (?setPickingMode@KinematicController@OgreNewt@@QAEXH@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CustomKinematicController::SetMaxLinearFriction(float)" (__imp_?SetMaxLinearFriction@CustomKinematicController@@QAEXM@Z) referenced in function "public: void __thiscall OgreNewt::KinematicController::setMaxLinearFriction(float)" (?setMaxLinearFriction@KinematicController@OgreNewt@@QAEXM@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CustomKinematicController::SetMaxAngularFriction(float)" (__imp_?SetMaxAngularFriction@CustomKinematicController@@QAEXM@Z) referenced in function "public: void __thiscall OgreNewt::KinematicController::setMaxAngularFriction(float)" (?setMaxAngularFriction@KinematicController@OgreNewt@@QAEXM@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CustomKinematicController::SetTargetRotation(class dQuaternion const &)" (__imp_?SetTargetRotation@CustomKinematicController@@QAEXABVdQuaternion@@@Z) referenced in function "public: void __thiscall OgreNewt::KinematicController::setTargetRotation(class Ogre::Quaternion const &)" (?setTargetRotation@KinematicController@OgreNewt@@QAEXABVQuaternion@Ogre@@@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl NewtonCustomJoint::operator delete(void *)" (__imp_??3NewtonCustomJoint@@SAXPAX@Z) referenced in function __unwindfunclet$??0BallAndSocket@OgreNewt@@QAE@PBVBody@1@0ABVVector3@Ogre@@@Z$0
2>OgreNewt_Joint.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl NewtonCustomJoint::operator delete(void *)" (__imp_??3NewtonCustomJoint@@SAXPAX@Z)
2>OgreNewt_PlayerController.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl NewtonCustomJoint::operator delete(void *)" (__imp_??3NewtonCustomJoint@@SAXPAX@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CustomBallAndSocket::CustomBallAndSocket(class dMatrix const &,struct NewtonBody const *,struct NewtonBody const *)" (__imp_??0CustomBallAndSocket@@QAE@ABVdMatrix@@PBUNewtonBody@@1@Z) referenced in function "public: __thiscall OgreNewt::BallAndSocket::BallAndSocket(class OgreNewt::Body const *,class OgreNewt::Body const *,class Ogre::Vector3 const &)" (??0BallAndSocket@OgreNewt@@QAE@PBVBody@1@0ABVVector3@Ogre@@@Z)
2>OgreNewt_BasicJoints.obj : 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::BallAndSocket::BallAndSocket(class OgreNewt::Body const *,class OgreNewt::Body const *,class Ogre::Vector3 const &)" (??0BallAndSocket@OgreNewt@@QAE@PBVBody@1@0ABVVector3@Ogre@@@Z)
2>OgreNewt_Joint.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void * __cdecl NewtonCustomJoint::operator new(unsigned int)" (__imp_??2NewtonCustomJoint@@SAPAXI@Z)
2>OgreNewt_PlayerController.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void * __cdecl NewtonCustomJoint::operator new(unsigned int)" (__imp_??2NewtonCustomJoint@@SAPAXI@Z)
2>OgreNewt_BasicJoints.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CustomBallAndSocket::GetInfo(struct NewtonJointRecord *)const " (?GetInfo@CustomBallAndSocket@@MBEXPAUNewtonJointRecord@@@Z)
2>OgreNewt_BasicJoints.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CustomBallAndSocket::SubmitConstraints(float,int)" (?SubmitConstraints@CustomBallAndSocket@@MAEXMH@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CustomBallAndSocket::~CustomBallAndSocket(void)" (__imp_??1CustomBallAndSocket@@UAE@XZ) referenced in function "public: virtual void * __thiscall CustomBallAndSocket::`scalar deleting destructor'(unsigned int)" (??_GCustomBallAndSocket@@UAEPAXI@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CustomHinge::CustomHinge(class dMatrix const &,struct NewtonBody const *,struct NewtonBody const *)" (__imp_??0CustomHinge@@QAE@ABVdMatrix@@PBUNewtonBody@@1@Z) referenced in function "public: __thiscall OgreNewt::Hinge::Hinge(class OgreNewt::Body const *,class OgreNewt::Body const *,class Ogre::Vector3 const &,class Ogre::Vector3 const &)" (??0Hinge@OgreNewt@@QAE@PBVBody@1@0ABVVector3@Ogre@@1@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "class dMatrix __cdecl dgGrammSchmidt(class dVector const &)" (?dgGrammSchmidt@@YA?AVdMatrix@@ABVdVector@@@Z) referenced in function "public: __thiscall OgreNewt::Hinge::Hinge(class OgreNewt::Body const *,class OgreNewt::Body const *,class Ogre::Vector3 const &,class Ogre::Vector3 const &)" (??0Hinge@OgreNewt@@QAE@PBVBody@1@0ABVVector3@Ogre@@1@Z)
2>OgreNewt_BasicJoints.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CustomHinge::GetInfo(struct NewtonJointRecord *)const " (?GetInfo@CustomHinge@@MBEXPAUNewtonJointRecord@@@Z)
2>OgreNewt_BasicJoints.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CustomHinge::SubmitConstraints(float,int)" (?SubmitConstraints@CustomHinge@@MAEXMH@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CustomHinge::~CustomHinge(void)" (__imp_??1CustomHinge@@UAE@XZ) referenced in function "public: virtual void * __thiscall CustomHinge::`scalar deleting destructor'(unsigned int)" (??_GCustomHinge@@UAEPAXI@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CustomSlider::CustomSlider(class dMatrix const &,struct NewtonBody const *,struct NewtonBody const *)" (__imp_??0CustomSlider@@QAE@ABVdMatrix@@PBUNewtonBody@@1@Z) referenced in function "public: __thiscall OgreNewt::Slider::Slider(class OgreNewt::Body const *,class OgreNewt::Body const *,class Ogre::Vector3 const &,class Ogre::Vector3 const &)" (??0Slider@OgreNewt@@QAE@PBVBody@1@0ABVVector3@Ogre@@1@Z)
2>OgreNewt_BasicJoints.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CustomSlider::GetInfo(struct NewtonJointRecord *)const " (?GetInfo@CustomSlider@@MBEXPAUNewtonJointRecord@@@Z)
2>OgreNewt_BasicJoints.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CustomSlider::SubmitConstraints(float,int)" (?SubmitConstraints@CustomSlider@@MAEXMH@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CustomSlider::~CustomSlider(void)" (__imp_??1CustomSlider@@UAE@XZ) referenced in function "public: virtual void * __thiscall CustomSlider::`scalar deleting destructor'(unsigned int)" (??_GCustomSlider@@UAEPAXI@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CustomUpVector::CustomUpVector(class dVector const &,struct NewtonBody *)" (__imp_??0CustomUpVector@@QAE@ABVdVector@@PAUNewtonBody@@@Z) referenced in function "public: __thiscall OgreNewt::UpVector::UpVector(class OgreNewt::Body const *,class Ogre::Vector3 const &)" (??0UpVector@OgreNewt@@QAE@PBVBody@1@ABVVector3@Ogre@@@Z)
2>OgreNewt_BasicJoints.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CustomUpVector::GetInfo(struct NewtonJointRecord *)const " (?GetInfo@CustomUpVector@@MBEXPAUNewtonJointRecord@@@Z)
2>OgreNewt_BasicJoints.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CustomUpVector::SubmitConstraints(float,int)" (?SubmitConstraints@CustomUpVector@@MAEXMH@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CustomUpVector::~CustomUpVector(void)" (__imp_??1CustomUpVector@@UAE@XZ) referenced in function "public: virtual void * __thiscall CustomUpVector::`scalar deleting destructor'(unsigned int)" (??_GCustomUpVector@@UAEPAXI@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CustomUpVector::SetPinDir(class dVector const &)" (__imp_?SetPinDir@CustomUpVector@@QAEXABVdVector@@@Z) referenced in function "public: void __thiscall OgreNewt::UpVector::setPin(class Ogre::Vector3 const &)" (?setPin@UpVector@OgreNewt@@QAEXABVVector3@Ogre@@@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CustomKinematicController::CustomKinematicController(struct NewtonBody const *,class dVector const &)" (__imp_??0CustomKinematicController@@QAE@PBUNewtonBody@@ABVdVector@@@Z) referenced in function "public: __thiscall OgreNewt::KinematicController::KinematicController(class OgreNewt::Body const *,class Ogre::Vector3 const &)" (??0KinematicController@OgreNewt@@QAE@PBVBody@1@ABVVector3@Ogre@@@Z)
2>OgreNewt_BasicJoints.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CustomKinematicController::GetInfo(struct NewtonJointRecord *)const " (?GetInfo@CustomKinematicController@@MBEXPAUNewtonJointRecord@@@Z)
2>OgreNewt_BasicJoints.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CustomKinematicController::SubmitConstraints(float,int)" (?SubmitConstraints@CustomKinematicController@@MAEXMH@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CustomKinematicController::~CustomKinematicController(void)" (__imp_??1CustomKinematicController@@UAE@XZ) referenced in function "public: virtual void * __thiscall CustomKinematicController::`scalar deleting destructor'(unsigned int)" (??_GCustomKinematicController@@UAEPAXI@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CustomKinematicController::SetTargetPosit(class dVector const &)" (__imp_?SetTargetPosit@CustomKinematicController@@QAEXABVdVector@@@Z) referenced in function "public: void __thiscall OgreNewt::KinematicController::setTargetPosit(class Ogre::Vector3 const &)" (?setTargetPosit@KinematicController@OgreNewt@@QAEXABVVector3@Ogre@@@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CustomKinematicController::SetTargetMatrix(class dMatrix const &)" (__imp_?SetTargetMatrix@CustomKinematicController@@QAEXABVdMatrix@@@Z) referenced in function "public: void __thiscall OgreNewt::KinematicController::setTargetMatrix(class Ogre::Vector3 const &,class Ogre::Quaternionconst &)" (?setTargetMatrix@KinematicController@OgreNewt@@QAEXABVVector3@Ogre@@ABVQuaternion@4@@Z)
2>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class dMatrix __thiscall CustomKinematicController::GetTargetMatrix(void)const " (__imp_?GetTargetMatrix@CustomKinematicController@@QBE?AVdMatrix@@XZ) referenced in function "public: void __thiscall OgreNewt::KinematicController::getTargetMatrix(class Ogre::Vector3 &,class Ogre::Quaternion &)const " (?getTargetMatrix@KinematicController@OgreNewt@@QBEXAAVVector3@Ogre@@AAVQuaternion@4@@Z)
2>OgreNewt_Joint.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct NewtonBody const * __thiscall NewtonCustomJoint::GetBody0(void)const " (__imp_?GetBody0@NewtonCustomJoint@@QBEPBUNewtonBody@@XZ) referenced in function "public: class OgreNewt::Body * __thiscall OgreNewt::Joint::getBody0(void)const " (?getBody0@Joint@OgreNewt@@QBEPAVBody@2@XZ)
2>OgreNewt_Joint.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct NewtonBody const * __thiscall NewtonCustomJoint::GetBody1(void)const " (__imp_?GetBody1@NewtonCustomJoint@@QBEPBUNewtonBody@@XZ) referenced in function "public: class OgreNewt::Body * __thiscall OgreNewt::Joint::getBody1(void)const " (?getBody1@Joint@OgreNewt@@QBEPAVBody@2@XZ)
2>OgreNewt_Joint.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct NewtonJoint const * __thiscall NewtonCustomJoint::GetJoint(void)const " (__imp_?GetJoint@NewtonCustomJoint@@QBEPBUNewtonJoint@@XZ) referenced in function "protected: void __thiscall OgreNewt::Joint::addLinearRow(class Ogre::Vector3 const &,class Ogre::Vector3 const &,class Ogre::Vector3 const &)const " (?addLinearRow@Joint@OgreNewt@@IBEXABVVector3@Ogre@@00@Z)
2>OgreNewt_Joint.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CustomUserBlank::CustomUserBlank(unsigned int,struct NewtonBody const *,struct NewtonBody const *)" (__imp_??0CustomUserBlank@@QAE@IPBUNewtonBody@@0@Z) referenced in function "public: __thiscall OgreNewt::CustomJoint::CustomJoint(unsigned int,class OgreNewt::Body const *,class OgreNewt::Body const *)" (??0CustomJoint@OgreNewt@@QAE@IPBVBody@1@0@Z)
2>OgreNewt_Joint.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CustomUserBlank::GetInfo(struct NewtonJointRecord *)const " (?GetInfo@CustomUserBlank@@MBEXPAUNewtonJointRecord@@@Z)
2>OgreNewt_Joint.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CustomUserBlank::SubmitConstraints(float,int)" (?SubmitConstraints@CustomUserBlank@@MAEXMH@Z)
2>OgreNewt_Joint.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CustomUserBlank::~CustomUserBlank(void)" (__imp_??1CustomUserBlank@@UAE@XZ) referenced in function "public: virtual void * __thiscall CustomUserBlank::`scalar deleting destructor'(unsigned int)" (??_GCustomUserBlank@@UAEPAXI@Z)
2>OgreNewt_PlayerController.obj : 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)
2>OgreNewt_PlayerController.obj : 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)
2>OgreNewt_PlayerController.obj : 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)
2>OgreNewt_PlayerController.obj : 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)
2>OgreNewt_PlayerController.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall NewtonCustomJoint::GetInfo(struct NewtonJointRecord *)const " (?GetInfo@NewtonCustomJoint@@UBEXPAUNewtonJointRecord@@@Z)
2>OgreNewt_PlayerController.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CustomPlayerController::SubmitConstraints(float,int)" (?SubmitConstraints@CustomPlayerController@@MAEXMH@Z)
2>OgreNewt_PlayerController.obj : 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)
2>OgreNewt_PlayerController.obj : 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)
2>OgreNewt_PlayerController.obj : 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)
2>OgreNewt_PlayerController.obj : 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)
2>OgreNewt_PlayerController.obj : error LNK2019: unresolved external symbol "public: __thiscall dMatrix::dMa

SFCBias

10-08-2011 02:42:36

After the other includes, add the line

#include "OgreSerializer.h"

and tell me what you get.

MindCalamity

10-08-2011 22:17:06

After the other includes, add the line

#include "OgreSerializer.h"

and tell me what you get.


I still get the same..

tod

11-08-2011 15:14:51

The linker errors are probably because a missing define. OGRENEWT_EXPORTS or something. Look in Ogrenewt_prerequisites.h This is causing your classes to be marked for import instead of export (__declspec(dllexport)).