brajeshlal
24-11-2006 08:38:18
I using Ogre SDK and trying to do first tutorial with newton SDK.
my code:
error comes:
and if i add mCamera in mOgreNewtListener
i.e
then the error in complilation is
What is wrong?
my code:
void OgreNewtApplication::createFrameListener()
{
mFrameListener = new ExampleFrameListener( mWindow,mCamera );
mRoot->addFrameListener( mFrameListener );
mOgreNewtListener = new OgreNewt::BasicFrameListener(mWindow,mSceneMgr,mWorld,120);
mRoot->addFrameListener(mOgreNewtListener);
}error comes:
1>------ Build started: Project: Dynamics, Configuration: Debug Win32 ------
1>Compiling...
1>OgreNewtApplication.cpp
1>Linking...
1>OgreNewtApplication.obj : error LNK2019: unresolved external symbol "public: __thiscall OgreNewt::World::World(void)" (??0World@OgreNewt@@QAE@XZ) referenced in function "public: __thiscall OgreNewtApplication::OgreNewtApplication(void)" (??0OgreNewtApplication@@QAE@XZ)
1>OgreNewtApplication.obj : error LNK2019: unresolved external symbol "public: __thiscall OgreNewt::World::~World(void)" (??1World@OgreNewt@@QAE@XZ) referenced in function "public: void * __thiscall OgreNewt::World::`scalar deleting destructor'(unsigned int)" (??_GWorld@OgreNewt@@QAEPAXI@Z)
1>OgreNewtApplication.obj : error LNK2019: unresolved external symbol "class Ogre::Vector3 __cdecl OgreNewt::MomentOfInertia::CalcBoxSolid(float,class Ogre::Vector3 const &)" (?CalcBoxSolid@MomentOfInertia@OgreNewt@@YA?AVVector3@Ogre@@MABV34@@Z) referenced in function "public: virtual void __thiscall OgreNewtApplication::createScene(void)" (?createScene@OgreNewtApplication@@UAEXXZ)
1>OgreNewtApplication.obj : error LNK2019: unresolved external symbol "public: __thiscall OgreNewt::CollisionPrimitives::Cone::Cone(class OgreNewt::World const *,float,float,class Ogre::Quaternion const &,class Ogre::Vector3 const &)" (??0Cone@CollisionPrimitives@OgreNewt@@QAE@PBVWorld@2@MMABVQuaternion@Ogre@@ABVVector3@5@@Z) referenced in function "public: virtual void __thiscall OgreNewtApplication::createScene(void)" (?createScene@OgreNewtApplication@@UAEXXZ)
1>OgreNewtApplication.obj : error LNK2019: unresolved external symbol "public: void __thiscall OgreNewt::Body::setStandardForceCallback(void)" (?setStandardForceCallback@Body@OgreNewt@@QAEXXZ) referenced in function "public: virtual void __thiscall OgreNewtApplication::createScene(void)" (?createScene@OgreNewtApplication@@UAEXXZ)
1>OgreNewtApplication.obj : error LNK2019: unresolved external symbol "public: void __thiscall OgreNewt::Body::setMassMatrix(float,class Ogre::Vector3 const &)" (?setMassMatrix@Body@OgreNewt@@QAEXMABVVector3@Ogre@@@Z) referenced in function "public: virtual void __thiscall OgreNewtApplication::createScene(void)" (?createScene@OgreNewtApplication@@UAEXXZ)
1>OgreNewtApplication.obj : error LNK2019: unresolved external symbol "class Ogre::Vector3 __cdecl OgreNewt::MomentOfInertia::CalcCylinderSolid(float,float,float)" (?CalcCylinderSolid@MomentOfInertia@OgreNewt@@YA?AVVector3@Ogre@@MMM@Z) referenced in function "public: virtual void __thiscall OgreNewtApplication::createScene(void)" (?createScene@OgreNewtApplication@@UAEXXZ)
1>OgreNewtApplication.obj : error LNK2019: unresolved external symbol "public: __thiscall OgreNewt::CollisionPrimitives::Cylinder::Cylinder(class OgreNewt::World const *,float,float,class Ogre::Quaternion const &,class Ogre::Vector3 const &)" (??0Cylinder@CollisionPrimitives@OgreNewt@@QAE@PBVWorld@2@MMABVQuaternion@Ogre@@ABVVector3@5@@Z) referenced in function "public: virtual void __thiscall OgreNewtApplication::createScene(void)" (?createScene@OgreNewtApplication@@UAEXXZ)
1>OgreNewtApplication.obj : error LNK2019: unresolved external symbol "public: void __thiscall OgreNewt::Body::setPositionOrientation(class Ogre::Vector3 const &,class Ogre::Quaternion const &)" (?setPositionOrientation@Body@OgreNewt@@QAEXABVVector3@Ogre@@ABVQuaternion@4@@Z) referenced in function "public: virtual void __thiscall OgreNewtApplication::createScene(void)" (?createScene@OgreNewtApplication@@UAEXXZ)
1>OgreNewtApplication.obj : error LNK2019: unresolved external symbol "public: void __thiscall OgreNewt::Body::attachToNode(class Ogre::Node *)" (?attachToNode@Body@OgreNewt@@QAEXPAVNode@Ogre@@@Z) referenced in function "public: virtual void __thiscall OgreNewtApplication::createScene(void)" (?createScene@OgreNewtApplication@@UAEXXZ)
1>OgreNewtApplication.obj : error LNK2019: unresolved external symbol "public: __thiscall OgreNewt::Body::Body(class OgreNewt::World const *,class OgreNewt::Collision const *,int)" (??0Body@OgreNewt@@QAE@PBVWorld@1@PBVCollision@1@H@Z) referenced in function "public: virtual void __thiscall OgreNewtApplication::createScene(void)" (?createScene@OgreNewtApplication@@UAEXXZ)
1>OgreNewtApplication.obj : error LNK2019: unresolved external symbol "public: __thiscall OgreNewt::CollisionPrimitives::Box::Box(class OgreNewt::World const *,class Ogre::Vector3 const &,class Ogre::Quaternion const &,class Ogre::Vector3 const &)" (??0Box@CollisionPrimitives@OgreNewt@@QAE@PBVWorld@2@ABVVector3@Ogre@@ABVQuaternion@5@1@Z) referenced in function "public: virtual void __thiscall OgreNewtApplication::createScene(void)" (?createScene@OgreNewtApplication@@UAEXXZ)
1>OgreNewtApplication.obj : error LNK2019: unresolved external symbol "public: __thiscall OgreNewt::BasicFrameListener::BasicFrameListener(class Ogre::RenderWindow *,class Ogre::SceneManager *,class OgreNewt::World *,int)" (??0BasicFrameListener@OgreNewt@@QAE@PAVRenderWindow@Ogre@@PAVSceneManager@3@PAVWorld@1@H@Z) referenced in function "public: virtual void __thiscall OgreNewtApplication::createFrameListener(void)" (?createFrameListener@OgreNewtApplication@@UAEXXZ)
1>bin\Debug\Dynamics.exe : fatal error LNK1120: 13 unresolved externals
1>Build log was saved at "file://c:\work\Dynamics\Dynamics\obj\Debug\BuildLog.htm"
1>Dynamics - 14 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========and if i add mCamera in mOgreNewtListener
i.e
void OgreNewtApplication::createFrameListener()
{
mFrameListener = new ExampleFrameListener( mWindow,mCamera );
mRoot->addFrameListener( mFrameListener );
mOgreNewtListener = new OgreNewt::BasicFrameListener(mWindow,mCamera, mSceneMgr,mWorld,120);
mRoot->addFrameListener(mOgreNewtListener);
}then the error in complilation is
1>c:\work\dynamics\dynamics\ogrenewtapplication.cpp(119) : error C2661: 'OgreNewt::BasicFrameListener::BasicFrameListener' : no overloaded function takes 5 arguments What is wrong?