wiki example linking error

majc

29-08-2006 20:38:51

When i tryed to compile the wiki example of ogrenewt gave me these errors:

Basic Tutorials 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)
Basic Tutorials 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)
Basic Tutorials 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)
Basic Tutorials 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)
Basic Tutorials 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)
Basic Tutorials 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)
Basic Tutorials 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)
Basic Tutorials 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)
Basic Tutorials 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)
Basic Tutorials error LNK2019: unresolved external symbol "public: void __thiscall OgreNewt::Body::attachToNode(class Ogre::SceneNode *)" (?attachToNode@Body@OgreNewt@@QAEXPAVSceneNode@Ogre@@@Z) referenced in function "public: virtual void __thiscall OgreNewtApplication::createScene(void)" (?createScene@OgreNewtApplication@@UAEXXZ)
Basic Tutorials 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)
Basic Tutorials 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)
Basic Tutorials 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)
Basic Tutorials fatal error LNK1120: 13 unresolved externals

walaber

30-08-2006 05:33:27

the linker cannot find the OgreNewt_Main.lib file. have you compiled OgreNewt yet?

majc

30-08-2006 13:05:01

Forgot to put OgreNewt_Main_d.lib in aditional dependecies :)
Now after compiled gave me this error:

17:03:58: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 6
Function: ResourceManager::add
Description: Resource with the name Core/NodeMaterial already exists..
File: c:\ogrenew\ogremain\src\ogreresourcemanager.cpp
Line: 89
Stack unwinding: <<beginning of stack>>
17:04:00: *-*-* OGRE Shutdown
17:04:00: Unregistering ResourceManager for type Compositor
17:04:00: Unregistering ResourceManager for type Font
17:04:00: Unregistering ResourceManager for type Skeleton
17:04:00: Unregistering ResourceManager for type Mesh
17:04:00: Unregistering ResourceManager for type HighLevelGpuProgram
17:04:00: Unloading library .\Plugin_CgProgramManager
17:04:00: Unloading library .\Plugin_OctreeSceneManager
17:04:00: Unloading library .\Plugin_BSPSceneManager
17:04:00: Unloading library .\Plugin_ParticleFX
17:04:00: *** Stopping Win32GL Subsystem ***
17:04:00: Unloading library .\RenderSystem_GL
17:04:00: Render Target 'OGRE Render Window' Average FPS: 0 Best FPS: 0 Worst FPS: 999
17:04:00: D3D9 : Shutting down cleanly.
17:04:00: Unregistering ResourceManager for type Texture
17:04:00: Unregistering ResourceManager for type GpuProgram
17:04:00: D3D9 : Direct3D9 Rendering Subsystem destroyed.
17:04:00: Unloading library .\RenderSystem_Direct3D9
17:04:00: Unregistering ResourceManager for type Material
17:04:00: Unloading library OgrePlatform_d.dll

By the way how i put the ragdoll demo working?
Im downloading your game to try it :)

OvermindDL1

30-08-2006 23:08:38

Function: ResourceManager::add
Description: Resource with the name Core/NodeMaterial already exists..
File: c:\ogrenew\ogremain\src\ogreresourcemanager.cpp
Line: 89
Stack unwinding: <<beginning of stack>>


That means that you have two of the same files that are trying to load the same things with the same name, Ogre does not like that (that is not OgreNewt related).

majc

31-08-2006 01:48:10

Thx mate everything its working until next problem :)