Newbie to OGRENEWT BasicFrameListener problem

johnno93

14-03-2007 15:37:43

When trying to use the framelistener in the wiki tutorial i get an error saying:

------ Build started: Project: Game, Configuration: Debug Win32 ------
Compiling...
Game.cpp
z:\game\game\src\game.cpp(386) : error C2661: 'OgreNewt::BasicFrameListener::BasicFrameListener' : no overloaded function takes 5 arguments
Build log was saved at "file://z:\Game\Game\obj\Debug\BuildLog.htm"
Game - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

Can someone help me out? Read that the new version of OGRENEWT does things slightly differently, is this the case?

Right taken out mCamera and now I'm getting :

Error 1 error LNK2019: unresolved external symbol "public: __thiscall OgreNewt::World::World(void)" (??0World@OgreNewt@@QAE@XZ) referenced in function "public: __thiscall GameApplication::GameApplication(void)" (??0GameApplication@@QAE@XZ) Game.obj
Error 2 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) Game.obj
Error 3 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 GameApplication::createFrameListener(void)" (?createFrameListener@GameApplication@@UAEXXZ) Game.obj
Error 4 fatal error LNK1120: 3 unresolved externals z:\Game\bin\Debug\AI_Game.exe 1

mako

15-03-2007 13:36:00

make sure that u r linking to newton.lib OgreNewt_Main.lib

nikhil

17-03-2007 08:22:06

or newton.lib and ogrenewt_main_d.lib if in debug mode

you must've set paths for additional includes, that's why it's compiling. do the same for additional libraries.
under Project Properties
Linker\General
Linker\Input