Problem compiling ogrenewt

cadue

26-10-2007 16:36:30

Hi! compiling Ogrenewt i have this linker error:
Why?
O
OgreNewt_BasicFrameListener.obj : error LNK2019: referement to external simbol "__declspec(dllimport) public: static class OIS::InputManager * __cdecl OIS::InputManager::createInputSystem(class std::multimap<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > &)" (__imp_?createInputSystem@InputManager@OIS@@SAPAV12@AAV?$multimap@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@@Z) don't solved in the function: "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)
lib\Debug_DLL\OgreNewt_Main_d.dll : fatal error LNK1120: 1 esterni non risolti


I'm using Newton Game Dynamics SDK Version 1.53, Ogre v1.4.4 and the lastest Ogrenewt library.
Thanks!

Fede89

05-11-2007 18:25:05

hi all! i'm new with ogrenewt and, in general, with ogre!

i'm using the library like cadue and visual studio 7.1 as compiler and i've the problem that cadue post.

i try to compile ogrenewt from ogre version 1.4.0 to 1.4.5 without any changes.

maybe i have to compile ogrenewt with an older version?

walaber

07-11-2007 22:59:33

it looks like the OgreNewt_Main project is not properly linking to the OIS library... check the project settings for OgreNewt_Main, and make sure it's pointing to the right directory, which should be something like ogremain/dependencies/lib...