User forums > Using Code::Blocks

using Ogre3d with Codeblocks problems.[solved]

(1/1)

iplayfast:
I'm just starting to play with ogre using codeblocks, and with the sample project have gotten stuck.

The sample project includes Ogre.h as well as ExampleApplication.h

But has errors from ExampleFrameListener.h during the linking stage.



--- Code: ---Linking console executable: C:\OgreSDK\bin\Debug\ogretest.exe
obj\Debug\main.o: In function `_ZN20ExampleFrameListener10frameEndedERKN4Ogre10FrameEventE':
C:/OgreSDK/samples/include/ExampleFrameListener.h:(.text$_ZN18ExampleApplicationD2Ev[ExampleApplication::~ExampleApplication()]+0x95): undefined reference to `Ogre::Root::~Root()'
C:/OgreSDK/samples/include/ExampleFrameListener.h:(.text$_ZN18ExampleApplication2goEv[ExampleApplication::go()]+0x28): undefined reference to `Ogre::Root::startRendering()'
C:/OgreSDK/samples/include/ExampleFrameListener.h:(.text$_ZN18ExampleApplicationD0Ev[ExampleApplication::~ExampleApplication()]+0x95): undefined reference to `Ogre::Root::~Root()'
C:/OgreSDK/samples/include/ExampleFrameListener.h:(.text$_ZN18ExampleApplicationD1Ev[ExampleApplication::~ExampleApplication()]+0x95): undefined reference to `Ogre::Root::~Root()'
C:/OgreSDK/samples/include/ExampleFrameListener.h:(.text$_ZN18ExampleApplication13loadResourcesEv[ExampleApplication::loadResources()]+0x7): undefined reference to `Ogre::ResourceGroupManager::getSingleton()'
C:/OgreSDK/samples/include/ExampleFrameListener.h:(.text$_ZN18ExampleApplication13loadResourcesEv[ExampleApplication::loadResources()]+0xf): undefined reference to `Ogre::ResourceGroupManager::initialiseAllResourceGroups()'
C:/OgreSDK/samples/include/ExampleFrameListener.h:(.text$_ZN18ExampleApplication14setupResourcesEv[ExampleApplication::setupResources()]+0x55): undefined reference to `Ogre::ConfigFile::ConfigFile()'
C:/OgreSDK/samples/include/ExampleFrameListener.h:(.text$_ZN18ExampleApplication14setupResourcesEv[ExampleApplication::setupResources()]+0xe5): undefined reference to `Ogre::ConfigFile::load(std::string const&, std::string const&, bool)'

--- End code ---

and so on.


I'm not sure if this is a set up problem or actual error or something else.

I've got OgreMain_d and OIS_d in my link libraries for the project.

Any other ideas what might be the problem?

iplayfast:
Solved at the Ogre forum
http://www.ogre3d.org/phpBB2/viewtopic.php?p=318325#318325
Where they pointed me to a wiki that shows how to set things up.
http://www.ogre3d.org/wiki/index.php/Codeblocks_and_MinGW#Setting_up_Project_and_Target_Build_Options_in_Code::blocks

Navigation

[0] Message Index

Go to full version