problem creating a collision shape

danharibo

15-04-2006 16:40:41

when i make a box i get these linker errors:
OgreNewt_main_d.lib(OgreNewt_CollisionPrimitives.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::MeshPtr & __thiscall Ogre::Entity::getMesh(void)" (__imp_?getMesh@Entity@Ogre@@QAEAAVMeshPtr@2@XZ)
i am guessing this is because of:
OgreNewt::Collision* carcoll = new OgreNewt::CollisionPrimitives::Box(mWorld,Vector3(Real(20),Real(40),Real(150)), 5);
i am still studyind the examples so if i ahve mad a mistake pls point it out!

danharibo

15-04-2006 17:17:46

i also get this problem with the first demo!!! :cry:

maxwave

15-04-2006 18:48:16

Check the paths on lib files in your project. If you change the Ogre, make new compile of OgreNewt. Basicaly try to make new compile of OgreNewt.

danharibo

15-04-2006 18:52:02

i compiled it yesturday!

walaber

15-04-2006 19:59:07

the demo cannot find your OgreMain.lib file... or Ogre has changed and the version you are linking to no longer has that function! I would guess it's the first one...

aravindh007

17-04-2006 13:35:27

check out the path and the file added in the Visual studio linker and set the project to active release ( by default it will be in active debug)...
:D

walaber

17-04-2006 16:08:23

i think you probably updated Ogre from CVS recently.. apparently something has changed in the last few days in CVS HEAD, that removed that function. perhaps it has been renamed... we need to search the changelogs and wiki to find out what happened.