[SOLVED] Error: mWorld = new OgreOde::World(mSceneMgr);

Dante

18-05-2008 18:28:37

Hi I'm new to OgreOde and im having a problem with http://www.ogre3d.org/wiki/index.php/First_steps_with_OgreODE

im getting this error:
Error 1 error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall OgreOde::World::World(class Ogre::SceneManager *)" (__imp_??0World@OgreOde@@QAE@PAVSceneManager@Ogre@@@Z) BaseApplication.obj
When i add this line mWorld = new OgreOde::World(mSceneMgr);

All i have done is set up a basic Ogre Application with an ogre head using the App Wizard.
Additional Include Directories:
  1. c:\dev\OgreOde\ode\include;
    c:\dev\OgreOde\prefab\include;
    c:\dev\OgreOde\loader\include;
    c:\dev\OgreOde\include;
    include;
    "$(OGRE_HOME)\include";
    "$(OGRE_HOME)\include\CEGUI";
    "$(OGRE_HOME)\samples\include"[/list:u]

    Additional Library Directories:
    1. c:\dev\OgreOde\loader\lib\debug;
      c:\dev\OgreOde\prefab\lib\debug;
      c:\dev\OgreOde\ode\lib\debuglib;
      c:\dev\OgreOde\lib\debug;
      "$(OGRE_HOME)\lib"[/list:u]

      I'm not sure what's wrong help!

rewb0rn

18-05-2008 21:16:51

you need to link against ogreode!
therefor add ogreode.lib or ogreode_d.lib in your additional depdencies directory in the project settings (visual c++)

Dante

18-05-2008 22:46:30

Yea that solved my problem thx :D :D

rruiz

30-05-2008 20:25:34

Hello I have the same problem if they may explain but in detail the solution please