[SOLVED] error LNK2001 - ogrenewt, ogre or my error?!

Shion

18-04-2007 19:26:39

Hi,

i will use ogrenewt and newton in my "game".

I use the gamestate classes from the wiki:
http://www.ogre3d.org/wiki/index.php/Ma ... _with_OGRE
additional i use an OIS Input Manager.

But if i use the following code, i become an linker error.


void Menu::Init()
{
//....
mWorld = new OgreNewt::World();

// the following line release the linker error
mOgreNewtListener = new OgreNewt::BasicFrameListener(mRenderWindow, mSceneMgr, mWorld, 60);

mRoot->addFrameListener(mOgreNewtListener);

//.....
}




OgreNewt_Main_d.lib(OgreNewt_Debugger.obj) : error LNK2001: unresolved external symbol "public: virtual class Ogre::ManualObject::ManualObjectSection * __thiscall Ogre::ManualObject::end(void)" (?end@ManualObject@Ogre@@UAEPAVManualObjectSection@12@XZ)

Debug/Kompex.exe : fatal error LNK1120: 1 unaufgelöste externe Verweise



I have added all needed libs:
newton.lib
OgreMain_d.lib
OIS_d.lib
CEGUIBase_d.lib
OgreGUIRenderer_d.lib
OgreNewt_Main_d.lib

It looks like the Linker miss a function in the OgreNewt_Main_d.lib,
but what can i do?

In release mode is the same problem.

I can compile all Demo programs, but not my program.
I don't know what i can do against linker errors..

If you need more informations, say it. ^^


BTW:
As i have registered me,
i have become this message with all my web.de mail addys:
"Sorry, but this e-mail address has been banned."
Why?

mako

19-04-2007 14:20:26

could be a version problem?

walaber

19-04-2007 20:59:22

what version of Ogre are you using? it seems that OgreNewt is using ManualObject, and your version of Ogre has a different definition of a function for that class.

kabaal

26-04-2007 12:24:10

i've got the EXACT same problem, i've build the lib with Ogre 1.4, i can build and launch the demos, but it seems i can't build anything else.

1>Linking...
1>OgreNewt_Main_d.lib(OgreNewt_Debugger.obj) : error LNK2001: unresolved external symbol "public: virtual class Ogre::ManualObject::ManualObjectSection * __thiscall Ogre::ManualObject::end(void)" (?end@ManualObject@Ogre@@UAEPAVManualObjectSection@12@XZ)
1>D:\doc\Visual Studio 2005\Projects\Witz_p\bin\Debug\Witz_p.exe : fatal error LNK1120: 1 unresolved externals


it links fine if i dont put that very line :

mOgreNewtListener = new OgreNewt::BasicFrameListener( mWindow, mSceneMgr, mWorld, 120 );

it's been 2 days now, i've tried alot of stuff, i've got 3 other guys trying to resolve this too, and they got that same error.

please help... :(

Shion

27-04-2007 15:48:16

Oh the board works again ^^
most of the time there hadn't shown the new topics and i can't login..


Ok, i have solved the problem since some days ^^
My problem was that i have changed from Ogre1.4RC2 to Ogre1.4 final and had forgotten to change the OgreMain[_d].dll file.
I had changed all other files but i have forgotten these one.
Now everything works fine.