ODE runtime error

hvalola

03-06-2010 04:55:22

hi
i'm newbe to ode ihave download the ode from sorceforge.net and extracted it. then i have include the include file to vc++ directories.
then i tried the sample "first step " and compile it 2 errors came up regarding unit32 and i comment the given files and no compilation errors
but at runtime errors appears

//////////////////////////////////////////////////////////
1>LINK : warning LNK4224: /OPT:NOWIN98 is no longer supported; ignored
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall OgreOde::BoxGeometry::createDebugObject(void)" (__imp_?createDebugObject@BoxGeometry@OgreOde@@UAEXXZ)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall OgreOde::BoxGeometry::~BoxGeometry(void)" (__imp_??1BoxGeometry@OgreOde@@UAE@XZ)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall OgreOde::BoxGeometry::BoxGeometry(class Ogre::Vector3 const &,class OgreOde::World *,class OgreOde::Space *)" (__imp_??0BoxGeometry@OgreOde@@QAE@ABVVector3@Ogre@@PAVWorld@1@PAVSpace@1@@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual class Ogre::AxisAlignedBox const & __thiscall OgreOde::InfinitePlaneGeometry::getAxisAlignedBox(void)" (__imp_?getAxisAlignedBox@InfinitePlaneGeometry@OgreOde@@UAEABVAxisAlignedBox@Ogre@@XZ)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual class Ogre::Quaternion const & __thiscall OgreOde::InfinitePlaneGeometry::getOrientation(void)" (__imp_?getOrientation@InfinitePlaneGeometry@OgreOde@@UAEABVQuaternion@Ogre@@XZ)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual class Ogre::Vector3 const & __thiscall OgreOde::InfinitePlaneGeometry::getPosition(void)" (__imp_?getPosition@InfinitePlaneGeometry@OgreOde@@UAEABVVector3@Ogre@@XZ)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall OgreOde::InfinitePlaneGeometry::setOrientation(class Ogre::Quaternion const &)" (__imp_?setOrientation@InfinitePlaneGeometry@OgreOde@@UAEXABVQuaternion@Ogre@@@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall OgreOde::InfinitePlaneGeometry::setPosition(class Ogre::Vector3 const &)" (__imp_?setPosition@InfinitePlaneGeometry@OgreOde@@UAEXABVVector3@Ogre@@@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall OgreOde::InfinitePlaneGeometry::~InfinitePlaneGeometry(void)" (__imp_??1InfinitePlaneGeometry@OgreOde@@UAE@XZ)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall OgreOde::InfinitePlaneGeometry::InfinitePlaneGeometry(class Ogre::Plane const &,class OgreOde::World *,class OgreOde::Space *)" (__imp_??0InfinitePlaneGeometry@OgreOde@@QAE@ABVPlane@Ogre@@PAVWorld@1@PAVSpace@1@@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall OgreOde::World::setAutoSleepAverageSamplesCount(unsigned int)" (__imp_?setAutoSleepAverageSamplesCount@World@OgreOde@@QAEXI@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall OgreOde::World::setAutoSleep(bool)" (__imp_?setAutoSleep@World@OgreOde@@QAEX_N@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall OgreOde::World::setContactCorrectionVelocity(float)" (__imp_?setContactCorrectionVelocity@World@OgreOde@@QAEXM@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall OgreOde::World::setCFM(float)" (__imp_?setCFM@World@OgreOde@@QAEXM@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall OgreOde::World::setERP(float)" (__imp_?setERP@World@OgreOde@@QAEXM@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall OgreOde::World::setGravity(class Ogre::Vector3 const &)" (__imp_?setGravity@World@OgreOde@@QAEXABVVector3@Ogre@@@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall OgreOde::World::World(class Ogre::SceneManager *)" (__imp_??0World@OgreOde@@QAE@PAVSceneManager@Ogre@@@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall OgreOde::BoxMass::setDensity(float,class Ogre::Vector3 const &)" (__imp_?setDensity@BoxMass@OgreOde@@QAEXMABVVector3@Ogre@@@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall OgreOde::BoxMass::~BoxMass(void)" (__imp_??1BoxMass@OgreOde@@UAE@XZ)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall OgreOde::BoxMass::BoxMass(float,class Ogre::Vector3 const &)" (__imp_??0BoxMass@OgreOde@@QAE@MABVVector3@Ogre@@@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall OgreOde::Geometry::setDebugContact(bool)" (__imp_?setDebugContact@Geometry@OgreOde@@UAEX_N@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall OgreOde::Geometry::destroyDebugObject(void)" (__imp_?destroyDebugObject@Geometry@OgreOde@@UAEXXZ)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall OgreOde::Geometry::createDebugObject(void)" (__imp_?createDebugObject@Geometry@OgreOde@@UAEXXZ)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall OgreOde::Geometry::setDebug(bool)" (__imp_?setDebug@Geometry@OgreOde@@UAEX_N@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall OgreOde::Geometry::notify(class OgreOde::Body *)" (__imp_?notify@Geometry@OgreOde@@UAEXPAVBody@2@@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual unsigned long __thiscall OgreOde::Geometry::getID(void)const " (__imp_?getID@Geometry@OgreOde@@UBEKXZ)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual class Ogre::AxisAlignedBox const & __thiscall OgreOde::Geometry::getAxisAlignedBox(void)" (__imp_?getAxisAlignedBox@Geometry@OgreOde@@UAEABVAxisAlignedBox@Ogre@@XZ)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual class Ogre::Quaternion const & __thiscall OgreOde::Geometry::getOrientation(void)" (__imp_?getOrientation@Geometry@OgreOde@@UAEABVQuaternion@Ogre@@XZ)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual class Ogre::Vector3 const & __thiscall OgreOde::Geometry::getPosition(void)" (__imp_?getPosition@Geometry@OgreOde@@UAEABVVector3@Ogre@@XZ)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall OgreOde::Geometry::setOrientation(class Ogre::Quaternion const &)" (__imp_?setOrientation@Geometry@OgreOde@@UAEXABVQuaternion@Ogre@@@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall OgreOde::Geometry::setPosition(class Ogre::Vector3 const &)" (__imp_?setPosition@Geometry@OgreOde@@UAEXABVVector3@Ogre@@@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall OgreOde::Geometry::setBody(class OgreOde::Body *)" (__imp_?setBody@Geometry@OgreOde@@UAEXPAVBody@2@@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall OgreOde::StepHandler::frameEnded(struct Ogre::FrameEvent const &)" (__imp_?frameEnded@StepHandler@OgreOde@@UAE_NABUFrameEvent@Ogre@@@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall OgreOde::StepHandler::frameStarted(struct Ogre::FrameEvent const &)" (__imp_?frameStarted@StepHandler@OgreOde@@UAE_NABUFrameEvent@Ogre@@@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall OgreOde::StepHandler::step(float)" (__imp_?step@StepHandler@OgreOde@@UAE_NM@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall OgreOde::StepHandler::~StepHandler(void)" (__imp_??1StepHandler@OgreOde@@UAE@XZ)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall OgreOde::StepHandler::StepHandler(class OgreOde::World *,enum OgreOde::StepHandler::StepModeType,float,float,float)" (__imp_??0StepHandler@OgreOde@@QAE@PAVWorld@1@W4StepModeType@01@MMM@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall OgreOde::Body::setMass(class OgreOde::Mass const &)" (__imp_?setMass@Body@OgreOde@@QAEXABVMass@2@@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall OgreOde::Body::setOrientation(class Ogre::Quaternion const &)" (__imp_?setOrientation@Body@OgreOde@@QAEXABVQuaternion@Ogre@@@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall OgreOde::Body::setPosition(class Ogre::Vector3 const &)" (__imp_?setPosition@Body@OgreOde@@QAEXABVVector3@Ogre@@@Z)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __thiscall OgreOde::InfinitePlaneGeometry::getTypeName(void)const " (__imp_?getTypeName@InfinitePlaneGeometry@OgreOde@@UBEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __thiscall OgreOde::BoxGeometry::getTypeName(void)const " (__imp_?getTypeName@BoxGeometry@OgreOde@@UBEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall OgreOde::World::synchronise(void)" (__imp_?synchronise@World@OgreOde@@QAEXXZ)
1>TutorialApplication2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class OgreOde::Space * __thiscall OgreOde::World::getDefaultSpace(void)" (__imp_?getDefaultSpace@World@OgreOde@@QAEPAVSpace@2@XZ)
1>bin\Release\TutorialApplication.exe : fatal error LNK1120: 44 unresolved externals
1>Build log was saved at "file://c:\work\TutorialApplication\TutorialApplication\obj\Release\BuildLog.htm"
1>TutorialApplication - 45 error(s)

//////////////////////////////////////////
some forums say about loading multiple dll files there was no errors

if some one can please help me.

SFCBias

04-06-2010 17:00:31

Did you forget to link the library?

hvalola

21-06-2010 11:07:14

hi
now i have another problem.
i have managed to move the object with the bounding box.when it close to another object it provides another error which says
"geom transform encapsulated object must not be in a space"

please help me to resolve this problem

dermont

21-06-2010 11:52:53

Your probably need to create you TransformGeometry geometries without a space, e:g:

////geom = new OgreOde::BoxGeometry(Vector3(0.30,1.27,0.96), world, space);
geom = new OgreOde::BoxGeometry(Vector3(0.30,1.27,0.96), world, 0);

hvalola

22-06-2010 04:18:43

this does not seems to be working. same error appears

dermont

22-06-2010 07:58:21

Then you need to post a simple example illustrating your problem.

hvalola

22-06-2010 12:04:23

I think it is happening because of collision handling. if any one can please provide me with a collision handling code that could stop the both objects at the collision time.