[Solved] LNK2001 while compiling

ArcanumGame

11-09-2010 22:40:06

Hi again. This time I cant get a solution for
the problem .. I get an LNK2001 Error and have
no idea how to fix this. :?:
1>------ Erstellen gestartet: Projekt: ArcanumEngineBase, Konfiguration: Release Win32 ------
1>Kompilieren...
1>ArcanumEngine.cpp
1>Verknüpfen...
1>ArcanumEngine.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: class OGRE3DBody * __thiscall OGRE3DRenderSystem::createBody(class NxOgre::Shape *,class bml::Vector3<float>,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class NxOgre::RigidBodyDescription const &)" (?createBody@OGRE3DRenderSystem@@QAEPAVOGRE3DBody@@PAVShape@NxOgre@@V?$Vector3@M@bml@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVRigidBodyDescription@4@@Z)".
1>bin\Release\ArcanumEngineBase.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.
1>Das Buildprotokoll wurde unter "file://d:\Users\Meatbug\Documents\Visual Studio 2008\Projects\ArcanumEngineBase\ArcanumEngineBase\obj\Release\BuildLog.htm" gespeichert.
1>ArcanumEngineBase - 2 Fehler, 0 Warnung(en)
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========

FrozenKiller42

12-09-2010 05:58:02

Are you linking to NxOgre correctly? Make sure your paths are setup right, then in the Linker|Input tab of your Project Properties, select 'Additional Dependencies" (if you speak English), and add the lines:

NxOgre_Debug.lib
NxOgreOGRE3D_Debug.lib


If you get an error about not finding the .lib files, make sure you have added the path YourNxOgrePath/sdk to your VC++ Directories in the Libraries sub header thing.

ArcanumGame

12-09-2010 12:30:48

Are you linking to NxOgre correctly? Make sure your paths are setup right, then in the Linker|Input tab of your Project Properties, select 'Additional Dependencies" (if you speak English), and add the lines:

NxOgre_Debug.lib
NxOgreOGRE3D_Debug.lib


If you get an error about not finding the .lib files, make sure you have added the path YourNxOgrePath/sdk to your VC++ Directories in the Libraries sub header thing.


Okay, NxOgreOGRE3D_Debug.lib was missing there.
I've added it. When I'm starting the game now, it's
just show an error, after the configuration-dialog,
when the render should start.
I only used this lines:

OGRE3DBody* Hero = mRenderSystem->createBody(new NxOgre::Box(1, 1, 1), NxOgre::Vec3(20, 35, 0), "Sindbad.mesh");

Hero->addForce(NxOgre::Vec3(-800, -200, 0));


I'm using:

void MyApp::createScene(void)
{

}


to create my scene and

bool ArcanumEngine::frameRenderingQueued(const Ogre::FrameEvent& evt)
{

}


To check the Input.
But when the render starts, the application
freeze and say, that the application must be closed..
If I comment the OGRE3DBody out, than it's working well.
Maybe its a problem with "mRenderSystem"?

betajaen

12-09-2010 13:19:11

Why are you using BloodyMess? The code is very old and horrible. Detritus is much much better.

And did you create the mRenderSystem pointer?

ArcanumGame

12-09-2010 13:34:40

Why are you using BloodyMess? The code is very old and horrible. Detritus is much much better.

And did you create the mRenderSystem pointer?


Is Detritus another version of NxOgre?
Where can I get it?

betajaen

12-09-2010 13:53:40

Detritus is the most recent version of NxOgre

http://github.com/betajaen/nxogre

ArcanumGame

12-09-2010 14:08:58

Detritus is the most recent version of NxOgre

http://github.com/betajaen/nxogre


How can I download that?
Or must I download every single file?

betajaen

12-09-2010 14:25:22

See the big link on the top right of the page saying "Download Source". Try clicking that.

ArcanumGame

12-09-2010 14:45:30

See the big link on the top right of the page saying "Download Source". Try clicking that.

I'm blind, am I not?
That's it for now, I'll write a new thread,
if there appear any issues again. :)