osceneloaderdemo link error

Starbuck

27-08-2009 12:02:18

I'm new to Ogre and Ofusion, and while compiling the demo osceneloader project in Microsoft c++ 2008 express edition I came accross this error.

1>------ Build started: Project: Demo_oSceneLoader, Configuration: Debug Win32 ------
1>Compiling...
1>oSceneLibDemo.cpp
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>LINK : fatal error LNK1104: cannot open file 'OgreMain_d.lib'
1>Build log was saved at "file://c:\obj\Debug\BuildLog.htm"
1>Demo_oSceneLoader - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


I have tried everything I know and can't make OgreMain_d.lib load. I am using the Ogre 1.6.3. SDK. I hope thats enough info.

Thankyou for any help.

Evak

27-08-2009 22:45:06

I don't know much about coding. But one thing I noticed is that its asking for a debug version of ogrenain hence the _D in the filename.

Did you compile a debug version of ogre to use with your app, or did you mix up the builds somehow and link the wrong version. Make sure all the libs your compiling with are either release or debug depending on what version you were intending to compile.

Someone else might have more ideas.

Jusas

28-08-2009 08:43:42

1>LINK : fatal error LNK1104: cannot open file 'OgreMain_d.lib'

Says it right there: it can't open the file probably since it can't find it. You need to be sure to have the path to that file in your library directories list.

Starbuck

28-08-2009 15:39:15

Thankyou very much for your help.

I got it working now. The OgreMain_d.lib file path was set for a different location than where it was. I understand now. :D