Author Topic: ogre ???  (Read 4639 times)

Offline lechoo

  • Multiple posting newcomer
  • *
  • Posts: 10
ogre ???
« on: September 25, 2006, 12:02:49 pm »
when i comple ogre aplication i get message

Switching to target: Release
Linking executable: OGRE sample.exe
Release\.objs\main.o:main.cpp:(.text$_ZN18ExampleApplication19createFrameListenerEv[ExampleApplication::createFrameListener()]+0xcf): undefined reference to `Ogre::OverlayManager::getByName(std::string const&)'
Release\.objs\main.o:main.cpp:(.text$_ZN20ExampleFrameListener11updateStatsEv[ExampleFrameListener::updateStats()]+0x111): undefined reference to `Ogre::OverlayManager::getOverlayElement(std::string const&, bool)'
Release\.objs\main.o:main.cpp:(.text$_ZN20ExampleFrameListener11updateStatsEv[ExampleFrameListener::updateStats()]+0x178): undefined reference to `Ogre::OverlayManager::getOverlayElement(std::string const&, bool)'
Release\.objs\main.o:main.cpp:(.text$_ZN20ExampleFrameListener11updateStatsEv[ExampleFrameListener::updateStats()]+0x1df): undefined reference to `Ogre::OverlayManager::getOverlayElement(std::string const&, bool)'
Release\.objs\main.o:main.cpp:(.text$_ZN20ExampleFrameListener11updateStatsEv[ExampleFrameListener::updateStats()]+0x246): undefined reference to `Ogre::OverlayManager::getOverlayElement(std::string const&, bool)'
Release\.objs\main.o:main.cpp:(.text$_ZN20ExampleFrameListener11updateStatsEv[ExampleFrameListener::updateStats()]+0x2b6): undefined reference to `Ogre::StringConverter::toString(float, unsigned short, unsigned short, char, std::_Ios_Fmtflags)'
Release\.objs\main.o:main.cpp:(.text$_ZN20ExampleFrameListener11updateStatsEv[ExampleFrameListener::updateStats()]+0x368): undefined reference to `Ogre::StringConverter::toString(float, unsigned short, unsigned short, char, std::_Ios_Fmtflags)'
Release\.objs\main.o:main.cpp:(.text$_ZN20ExampleFrameListener11updateStatsEv[ExampleFrameListener::updateStats()]+0x412): undefined reference to `Ogre::StringConverter::toString(unsigned long, unsigned short, char, std::_Ios_Fmtflags)'
Release\.objs\main.o:main.cpp:(.text$_ZN20ExampleFrameListener11updateStatsEv[ExampleFrameListener::updateStats()]+0x459): undefined reference to `Ogre::StringConverter::toString(float, unsigned short, unsigned short, char, std::_Ios_Fmtflags)'
Release\.objs\main.o:main.cpp:(.text$_ZN20ExampleFrameListener11updateStatsEv[ExampleFrameListener::updateStats()]+0x620): undefined reference to `Ogre::StringConverter::toString(unsigned long, unsigned short, char, std::_Ios_Fmtflags)'
Release\.objs\main.o:main.cpp:(.text$_ZN20ExampleFrameListener11updateStatsEv[ExampleFrameListener::updateStats()]+0x664): undefined reference to `Ogre::StringConverter::toString(float, unsigned short, unsigned short, char, std::_Ios_Fmtflags)'
Release\.objs\main.o:main.cpp:(.text$_ZN20ExampleFrameListener11updateStatsEv[ExampleFrameListener::updateStats()]+0x855): undefined reference to `Ogre::OverlayManager::getOverlayElement(std::string const&, bool)'
Release\.objs\main.o:main.cpp:(.text$_ZN20ExampleFrameListener11updateStatsEv[ExampleFrameListener::updateStats()]+0x8ac): undefined reference to `Ogre::StringConverter::toString(unsigned int, unsigned short, char, std::_Ios_Fmtflags)'
Release\.objs\main.o:main.cpp:(.text$_ZN20ExampleFrameListener11updateStatsEv[ExampleFrameListener::updateStats()]+0x983): undefined reference to `Ogre::OverlayManager::getOverlayElement(std::string const&, bool)'
Release\.objs\main.o:main.cpp:(.text$_ZN18ExampleApplication18chooseSceneManagerEv[ExampleApplication::chooseSceneManager()]+0x84): undefined reference to `Ogre::Root::createSceneManager(unsigned short, std::string const&)'
Release\.objs\main.o:main.cpp:(.text$_ZN18ExampleApplication9configureEv[ExampleApplication::configure()]+0xc8): undefined reference to `Ogre::Root::initialise(bool, std::string const&)'
Release\.objs\main.o:main.cpp:(.text$_ZN18ExampleApplication5setupEv[ExampleApplication::setup()]+0x10c): undefined reference to `Ogre::Root::Root(std::string const&, std::string const&, std::string const&)'
Release\.objs\main.o:main.cpp:(.text$_ZN18ExampleApplication14setupResourcesEv[ExampleApplication::setupResources()]+0xd5): undefined reference to `Ogre::ConfigFile::load(std::string conInfo: resolving Ogre::Vector3::ZERO     by linking to __imp___ZN4Ogre7Vector34ZEROE (auto-import)
Info: resolving Ogre::Math::fDeg2Rad     by linking to __imp___ZN4Ogre4Math8fDeg2RadE (auto-import)
Info: resolving Ogre::Quaternion::IDENTITY      by linking to __imp___ZN4Ogre10Quaternion8IDENTITYE (auto-import)
Info: resolving Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME       by linking to __imp___ZN4Ogre20ResourceGroupManager27DEFAULT_RESOURCE_GROUP_NAMEE (auto-import)
st&, std::string const&, bool)'
Release\.objs\main.o:main.cpp:(.text$_ZN18ExampleApplication14setupResourcesEv[ExampleApplication::setupResources()]+0x48b): undefined reference to `Ogre::ResourceGroupManager::addResourceLocation(std::string const&, std::string const&, std::string const&, bool)'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)


Help!!!

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: ogre ???
« Reply #1 on: September 25, 2006, 01:34:40 pm »
Because you are not using STLPort.
Be patient!
This bug will be fixed soon...

Offline lechoo

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: ogre ???
« Reply #2 on: September 25, 2006, 04:50:14 pm »
witch libray should i conect to my project??

Offline bigbug

  • Multiple posting newcomer
  • *
  • Posts: 39
Re: ogre ???
« Reply #3 on: September 25, 2006, 05:08:56 pm »
witch libray should i conect to my project??
Release: libstlport.5.0.dll
Debug: libstlportstlg.5.0.dll
Look in your OgreSDK installation folder. MinGW edition of gcc can link to dlls directly.
And don't forget using the -mthreads option.

Offline lechoo

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: ogre ???
« Reply #4 on: September 25, 2006, 05:36:59 pm »
i'v add this libray but i steel have the same message
????

Offline nfz

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: ogre ???
« Reply #5 on: September 25, 2006, 10:04:03 pm »
The problem stems from not including STLPort directories prior to all others in compiler directory settings in the project settings.  The
wiki provides more info on this.  Take special note of the section that has Very Important in bold.

Also note that starting with the just released Ogre SDK 1.2.3, STLPort is no longer used but then you need a special build of MinGW.  You can read about it here
« Last Edit: September 25, 2006, 10:08:59 pm by nfz »