News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

ogre ???

Started by lechoo, September 25, 2006, 12:02:49 PM

Previous topic - Next topic

lechoo

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!!!

mandrav

Because you are not using STLPort.
Be patient!
This bug will be fixed soon...

lechoo

witch libray should i conect to my project??

bigbug

Quote from: lechoo on September 25, 2006, 04:50:14 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.

lechoo

i'v add this libray but i steel have the same message
????

nfz

#5
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