I am trying to build 1.6.0RC1 from source on a linux (ubuntu 7.10) system. On the very same system I successfully built various 1.4 versions like 1.4.9 before.
So far, I did (as usual)
./configure --prefix=/opt/ogre-1.6.0RC1 --disable-cg
make
Compiling goes well, but when the linking of libOgreMain happens, I get the following errors about undefined symbols.
- Code: Select all
.libs/OgreAnimable.o: In function `~Exception':
/home/ubuntu/build/ogre/OgreMain/src/../../OgreMain/include/OgreException.h:128: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/home/ubuntu/build/ogre/OgreMain/src/../../OgreMain/include/OgreException.h:128: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/home/ubuntu/build/ogre/OgreMain/src/../../OgreMain/include/OgreException.h:128: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/home/ubuntu/build/ogre/OgreMain/src/../../OgreMain/include/OgreException.h:128: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/home/ubuntu/build/ogre/OgreMain/src/../../OgreMain/include/OgreException.h:128: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
.libs/OgreAnimable.o:/home/ubuntu/build/ogre/OgreMain/src/../../OgreMain/include/OgreException.h:128: more undefined references to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' follow
.libs/OgreParticleSystem.o: In function `operator< <char, std::char_traits<char>, std::allocator<char> >':
/usr/include/c++/4.1.3/bits/basic_string.h:2213: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
.libs/OgreParticleSystem.o: In function `~pair':
/usr/include/c++/4.1.3/bits/stl_pair.h:69: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
.libs/OgreParticleSystem.o: In function `Ogre::ParticleSystem::initParameters()':
/home/ubuntu/build/ogre/OgreMain/src/OgreParticleSystem.cpp:735: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/home/ubuntu/build/ogre/OgreMain/src/OgreParticleSystem.cpp:735: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
.libs/OgreParticleSystem.o: In function `~pair':
/usr/include/c++/4.1.3/bits/stl_pair.h:69: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
.libs/OgreParticleSystem.o: In function `Ogre::ParticleSystem::initParameters()':
/home/ubuntu/build/ogre/OgreMain/src/OgreParticleSystem.cpp:740: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
.libs/OgreParticleSystem.o:/home/ubuntu/build/ogre/OgreMain/src/OgreParticleSystem.cpp:740: more undefined references to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' follow
/usr/bin/ld: .libs/libOgreMain-1.6.0.so: hidden symbol `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' isn't defined
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[2]: *** [libOgreMain.la] Error 1
make[2]: Leaving directory `/home/ubuntu/build/ogre/OgreMain/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ubuntu/build/ogre/OgreMain'
make: *** [all-recursive] Error 1
I am using ubuntu's GCC 4.1.3, and neither the Readme's nor the build-instructions in the wiki are much of a help for me here.
Any hints?
Thank you very much.[/code][/quote]






