Error compiling when I add CEGUI to my project

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

azrialelf
Just popping in
Just popping in
Posts: 7
Joined: Sun Jul 08, 2007 21:36

Error compiling when I add CEGUI to my project

Postby azrialelf » Tue Nov 02, 2010 04:19

Hello all,

When I try and add the CEGUI includes for my project, I get no errors (CEGUI.h and CEGUIOgreRenderer.h), however when I try and initialize CEGUI by using the tutorial code I get the following errors:

Code: Select all

Undefined symbols:
  "CEGUI::operator+(char const*, CEGUI::String const&)", referenced from:
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
  "CEGUI::String::~String()", referenced from:
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      std::pair<CEGUI::String const, CEGUI::Scheme*>::~pair()in OgreFramework.o
      CEGUI::ResourceEventArgs::~ResourceEventArgs()in OgreFramework.o
      CEGUI::ResourceEventArgs::~ResourceEventArgs()in OgreFramework.o
      CEGUI::ResourceEventArgs::~ResourceEventArgs()in OgreFramework.o
      CEGUI::ResourceEventArgs::~ResourceEventArgs()in OgreFramework.o
      CEGUI::ResourceEventArgs::~ResourceEventArgs()in OgreFramework.o
      CEGUI::ResourceEventArgs::~ResourceEventArgs()in OgreFramework.o
      CEGUI::ResourceEventArgs::ResourceEventArgs(CEGUI::String const&, CEGUI::String const&)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::AlreadyExistsException::AlreadyExistsException(CEGUI::String const&, CEGUI::String const&, int)in OgreFramework.o
      CEGUI::AlreadyExistsException::AlreadyExistsException(CEGUI::String const&, CEGUI::String const&, int)in OgreFramework.o
      CEGUI::InvalidRequestException::InvalidRequestException(CEGUI::String const&, CEGUI::String const&, int)in OgreFramework.o
      CEGUI::InvalidRequestException::InvalidRequestException(CEGUI::String const&, CEGUI::String const&, int)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::create(CEGUI::String const&, CEGUI::String const&, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::create(CEGUI::String const&, CEGUI::String const&, CEGUI::XMLResourceExistsAction)in OgreFramework.o
  "CEGUI::WidgetLookManager::d_defaultResourceGroup", referenced from:
      __ZN5CEGUI17WidgetLookManager22d_defaultResourceGroupE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI17WidgetLookManager22d_defaultResourceGroupE$non_lazy_ptr)
  "CEGUI::ResourceEventSet::EventResourceCreated", referenced from:
      __ZN5CEGUI16ResourceEventSet20EventResourceCreatedE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI16ResourceEventSet20EventResourceCreatedE$non_lazy_ptr)
  "CEGUI::Exception::Exception(CEGUI::String const&, CEGUI::String const&, CEGUI::String const&, int)", referenced from:
      CEGUI::AlreadyExistsException::AlreadyExistsException(CEGUI::String const&, CEGUI::String const&, int)in OgreFramework.o
      CEGUI::InvalidRequestException::InvalidRequestException(CEGUI::String const&, CEGUI::String const&, int)in OgreFramework.o
  "CEGUI::Scheme_xmlHandler::getObjectName() const", referenced from:
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::create(CEGUI::String const&, CEGUI::String const&, CEGUI::XMLResourceExistsAction)in OgreFramework.o
  "CEGUI::Window::setSize(CEGUI::UVector2 const&)", referenced from:
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
  "CEGUI::Singleton<CEGUI::Logger>::ms_Singleton", referenced from:
      __ZN5CEGUI9SingletonINS_6LoggerEE12ms_SingletonE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI9SingletonINS_6LoggerEE12ms_SingletonE$non_lazy_ptr)
  "CEGUI::Window::addChildWindow(CEGUI::Window*)", referenced from:
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
  "CEGUI::System::setGUISheet(CEGUI::Window*)", referenced from:
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
  "CEGUI::Singleton<CEGUI::WindowManager>::ms_Singleton", referenced from:
      __ZN5CEGUI9SingletonINS_13WindowManagerEE12ms_SingletonE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI9SingletonINS_13WindowManagerEE12ms_SingletonE$non_lazy_ptr)
  "CEGUI::String::grow(unsigned long)", referenced from:
      CEGUI::String::assign(char const*, unsigned long)in OgreFramework.o
      CEGUI::String::assign(CEGUI::String const&, unsigned long, unsigned long)in OgreFramework.o
  "CEGUI::System::getSingleton()", referenced from:
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
  "CEGUI::Scheme_xmlHandler::~Scheme_xmlHandler()", referenced from:
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::create(CEGUI::String const&, CEGUI::String const&, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::create(CEGUI::String const&, CEGUI::String const&, CEGUI::XMLResourceExistsAction)in OgreFramework.o
  "CEGUI::Imageset::d_defaultResourceGroup", referenced from:
      __ZN5CEGUI8Imageset22d_defaultResourceGroupE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI8Imageset22d_defaultResourceGroupE$non_lazy_ptr)
  "CEGUI::String::npos", referenced from:
      __ZN5CEGUI6String4nposE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI6String4nposE$non_lazy_ptr)
  "CEGUI::OgreRenderer::bootstrapSystem()", referenced from:
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
  "CEGUI::WindowManager::createWindow(CEGUI::String const&, CEGUI::String const&)", referenced from:
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
  "CEGUI::Font::d_defaultResourceGroup", referenced from:
      __ZN5CEGUI4Font22d_defaultResourceGroupE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI4Font22d_defaultResourceGroupE$non_lazy_ptr)
  "CEGUI::Exception::what() const", referenced from:
      vtable for CEGUI::AlreadyExistsExceptionin OgreFramework.o
      vtable for CEGUI::InvalidRequestExceptionin OgreFramework.o
  "CEGUI::ResourceEventSet::EventNamespace", referenced from:
      __ZN5CEGUI16ResourceEventSet14EventNamespaceE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI16ResourceEventSet14EventNamespaceE$non_lazy_ptr)
  "CEGUI::Scheme_xmlHandler::Scheme_xmlHandler(CEGUI::String const&, CEGUI::String const&)", referenced from:
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::create(CEGUI::String const&, CEGUI::String const&, CEGUI::XMLResourceExistsAction)in OgreFramework.o
  "CEGUI::Scheme::~Scheme()", referenced from:
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
  "CEGUI::WindowManager::WindowManager()", referenced from:
      OgreFramework::OgreFramework()in OgreFramework.o
  "CEGUI::WindowManager::~WindowManager()", referenced from:
      OgreFramework::~OgreFramework()in OgreFramework.o
      OgreFramework::~OgreFramework()in OgreFramework.o
      OgreFramework::~OgreFramework()in OgreFramework.o
      OgreFramework::~OgreFramework()in OgreFramework.o
      OgreFramework::OgreFramework()in OgreFramework.o
  "typeinfo for CEGUI::Exception", referenced from:
      typeinfo for CEGUI::AlreadyExistsExceptionin OgreFramework.o
      typeinfo for CEGUI::InvalidRequestExceptionin OgreFramework.o
  "CEGUI::Window::setText(CEGUI::String const&)", referenced from:
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
  "CEGUI::WindowManager::d_defaultResourceGroup", referenced from:
      __ZN5CEGUI13WindowManager22d_defaultResourceGroupE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI13WindowManager22d_defaultResourceGroupE$non_lazy_ptr)
  "CEGUI::Singleton<CEGUI::SchemeManager>::ms_Singleton", referenced from:
      __ZN5CEGUI9SingletonINS_13SchemeManagerEE12ms_SingletonE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI9SingletonINS_13SchemeManagerEE12ms_SingletonE$non_lazy_ptr)
  "CEGUI::Scheme_xmlHandler::getObject() const", referenced from:
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::create(CEGUI::String const&, CEGUI::String const&, CEGUI::XMLResourceExistsAction)in OgreFramework.o
  "CEGUI::Exception::~Exception()", referenced from:
      CEGUI::AlreadyExistsException::~AlreadyExistsException()in OgreFramework.o
      CEGUI::InvalidRequestException::~InvalidRequestException()in OgreFramework.o
      CEGUI::InvalidRequestException::~InvalidRequestException()in OgreFramework.o
      CEGUI::AlreadyExistsException::~AlreadyExistsException()in OgreFramework.o
  "CEGUI::ResourceEventSet::EventResourceReplaced", referenced from:
      __ZN5CEGUI16ResourceEventSet21EventResourceReplacedE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI16ResourceEventSet21EventResourceReplacedE$non_lazy_ptr)
  "CEGUI::Scheme::d_defaultResourceGroup", referenced from:
      __ZN5CEGUI6Scheme22d_defaultResourceGroupE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI6Scheme22d_defaultResourceGroupE$non_lazy_ptr)
  "CEGUI::ResourceEventSet::EventResourceDestroyed", referenced from:
      __ZN5CEGUI16ResourceEventSet22EventResourceDestroyedE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI16ResourceEventSet22EventResourceDestroyedE$non_lazy_ptr)
  "CEGUI::operator+(CEGUI::String const&, CEGUI::String const&)", referenced from:
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
  "CEGUI::operator+(CEGUI::String const&, char const*)", referenced from:
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
ld: symbol(s) not found
collect2: ld returned 1 exit status


The "undefined symbols" error makes me think it's a missing include, but I included both the headers the tutorials advised me to. Any ideas what this might be caused by?

Thanks!

Regards,

azrialelf

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Error compiling when I add CEGUI to my project

Postby CrazyEddie » Tue Nov 02, 2010 10:36

You're missing libraries (or frameworks?) - CEGUIBase for example.

HTH

CE

azrialelf
Just popping in
Just popping in
Posts: 7
Joined: Sun Jul 08, 2007 21:36

Re: Error compiling when I add CEGUI to my project

Postby azrialelf » Wed Nov 03, 2010 03:26

I tried linking the libraries (actually I'm new to Xcode so I copied the header and framework paths in the prebuilt SDK sample project since that one built perfectly) but got these errors:

Code: Select all

Undefined symbols:
  "CEGUI::operator+(char const*, CEGUI::String const&)", referenced from:
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
  "CEGUI::String::~String()", referenced from:
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      std::pair<CEGUI::String const, CEGUI::Scheme*>::~pair()in OgreFramework.o
      CEGUI::ResourceEventArgs::~ResourceEventArgs()in OgreFramework.o
      CEGUI::ResourceEventArgs::~ResourceEventArgs()in OgreFramework.o
      CEGUI::ResourceEventArgs::~ResourceEventArgs()in OgreFramework.o
      CEGUI::ResourceEventArgs::~ResourceEventArgs()in OgreFramework.o
      CEGUI::ResourceEventArgs::~ResourceEventArgs()in OgreFramework.o
      CEGUI::ResourceEventArgs::~ResourceEventArgs()in OgreFramework.o
      CEGUI::ResourceEventArgs::ResourceEventArgs(CEGUI::String const&, CEGUI::String const&)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::AlreadyExistsException::AlreadyExistsException(CEGUI::String const&, CEGUI::String const&, int)in OgreFramework.o
      CEGUI::AlreadyExistsException::AlreadyExistsException(CEGUI::String const&, CEGUI::String const&, int)in OgreFramework.o
      CEGUI::InvalidRequestException::InvalidRequestException(CEGUI::String const&, CEGUI::String const&, int)in OgreFramework.o
      CEGUI::InvalidRequestException::InvalidRequestException(CEGUI::String const&, CEGUI::String const&, int)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::create(CEGUI::String const&, CEGUI::String const&, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::create(CEGUI::String const&, CEGUI::String const&, CEGUI::XMLResourceExistsAction)in OgreFramework.o
  "CEGUI::ResourceEventSet::EventResourceCreated", referenced from:
      __ZN5CEGUI16ResourceEventSet20EventResourceCreatedE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI16ResourceEventSet20EventResourceCreatedE$non_lazy_ptr)
  "CEGUI::Exception::Exception(CEGUI::String const&, CEGUI::String const&, CEGUI::String const&, int)", referenced from:
      CEGUI::AlreadyExistsException::AlreadyExistsException(CEGUI::String const&, CEGUI::String const&, int)in OgreFramework.o
      CEGUI::InvalidRequestException::InvalidRequestException(CEGUI::String const&, CEGUI::String const&, int)in OgreFramework.o
  "CEGUI::Scheme_xmlHandler::getObjectName() const", referenced from:
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::create(CEGUI::String const&, CEGUI::String const&, CEGUI::XMLResourceExistsAction)in OgreFramework.o
  "CEGUI::Window::setSize(CEGUI::UVector2 const&)", referenced from:
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
  "CEGUI::Singleton<CEGUI::Logger>::ms_Singleton", referenced from:
      __ZN5CEGUI9SingletonINS_6LoggerEE12ms_SingletonE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI9SingletonINS_6LoggerEE12ms_SingletonE$non_lazy_ptr)
  "CEGUI::Window::addChildWindow(CEGUI::Window*)", referenced from:
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
  "CEGUI::System::setGUISheet(CEGUI::Window*)", referenced from:
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
  "CEGUI::Singleton<CEGUI::WindowManager>::ms_Singleton", referenced from:
      __ZN5CEGUI9SingletonINS_13WindowManagerEE12ms_SingletonE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI9SingletonINS_13WindowManagerEE12ms_SingletonE$non_lazy_ptr)
  "CEGUI::String::grow(unsigned long)", referenced from:
      CEGUI::String::assign(char const*, unsigned long)in OgreFramework.o
      CEGUI::String::assign(CEGUI::String const&, unsigned long, unsigned long)in OgreFramework.o
  "CEGUI::System::getSingleton()", referenced from:
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
  "CEGUI::Scheme_xmlHandler::~Scheme_xmlHandler()", referenced from:
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::create(CEGUI::String const&, CEGUI::String const&, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::create(CEGUI::String const&, CEGUI::String const&, CEGUI::XMLResourceExistsAction)in OgreFramework.o
  "CEGUI::String::npos", referenced from:
      __ZN5CEGUI6String4nposE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI6String4nposE$non_lazy_ptr)
  "CEGUI::OgreRenderer::bootstrapSystem()", referenced from:
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
  "CEGUI::WindowManager::createWindow(CEGUI::String const&, CEGUI::String const&)", referenced from:
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
  "CEGUI::Exception::what() const", referenced from:
      vtable for CEGUI::AlreadyExistsExceptionin OgreFramework.o
      vtable for CEGUI::InvalidRequestExceptionin OgreFramework.o
  "CEGUI::ResourceEventSet::EventNamespace", referenced from:
      __ZN5CEGUI16ResourceEventSet14EventNamespaceE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI16ResourceEventSet14EventNamespaceE$non_lazy_ptr)
  "CEGUI::Scheme_xmlHandler::Scheme_xmlHandler(CEGUI::String const&, CEGUI::String const&)", referenced from:
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::create(CEGUI::String const&, CEGUI::String const&, CEGUI::XMLResourceExistsAction)in OgreFramework.o
  "CEGUI::Scheme::~Scheme()", referenced from:
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
  "CEGUI::WindowManager::WindowManager()", referenced from:
      OgreFramework::OgreFramework()in OgreFramework.o
  "CEGUI::WindowManager::~WindowManager()", referenced from:
      OgreFramework::~OgreFramework()in OgreFramework.o
      OgreFramework::~OgreFramework()in OgreFramework.o
      OgreFramework::~OgreFramework()in OgreFramework.o
      OgreFramework::~OgreFramework()in OgreFramework.o
      OgreFramework::OgreFramework()in OgreFramework.o
  "typeinfo for CEGUI::Exception", referenced from:
      typeinfo for CEGUI::AlreadyExistsExceptionin OgreFramework.o
      typeinfo for CEGUI::InvalidRequestExceptionin OgreFramework.o
  "CEGUI::Window::setText(CEGUI::String const&)", referenced from:
      OgreFramework::initOgre(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OIS::KeyListener*, OIS::MultiTouchListener*)in OgreFramework.o
  "CEGUI::Singleton<CEGUI::SchemeManager>::ms_Singleton", referenced from:
      __ZN5CEGUI9SingletonINS_13SchemeManagerEE12ms_SingletonE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI9SingletonINS_13SchemeManagerEE12ms_SingletonE$non_lazy_ptr)
  "CEGUI::Scheme_xmlHandler::getObject() const", referenced from:
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::create(CEGUI::String const&, CEGUI::String const&, CEGUI::XMLResourceExistsAction)in OgreFramework.o
  "CEGUI::Exception::~Exception()", referenced from:
      CEGUI::AlreadyExistsException::~AlreadyExistsException()in OgreFramework.o
      CEGUI::InvalidRequestException::~InvalidRequestException()in OgreFramework.o
      CEGUI::InvalidRequestException::~InvalidRequestException()in OgreFramework.o
      CEGUI::AlreadyExistsException::~AlreadyExistsException()in OgreFramework.o
  "CEGUI::ResourceEventSet::EventResourceReplaced", referenced from:
      __ZN5CEGUI16ResourceEventSet21EventResourceReplacedE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI16ResourceEventSet21EventResourceReplacedE$non_lazy_ptr)
  "CEGUI::ResourceEventSet::EventResourceDestroyed", referenced from:
      __ZN5CEGUI16ResourceEventSet22EventResourceDestroyedE$non_lazy_ptr in OgreFramework.o
     (maybe you meant: __ZN5CEGUI16ResourceEventSet22EventResourceDestroyedE$non_lazy_ptr)
  "CEGUI::operator+(CEGUI::String const&, CEGUI::String const&)", referenced from:
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
  "CEGUI::operator+(CEGUI::String const&, char const*)", referenced from:
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::destroyObject(std::_Rb_tree_iterator<std::pair<CEGUI::String const, CEGUI::Scheme*> >)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
      CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction(CEGUI::String, CEGUI::Scheme*, CEGUI::XMLResourceExistsAction)in OgreFramework.o
ld: symbol(s) not found
collect2: ld returned 1 exit status


I tried so many different ways to get it to work but I can't figure it out. Especially considering the Sample project builds with no problems.
I'm building for the Iphone - Could that be an issue?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Error compiling when I add CEGUI to my project

Postby CrazyEddie » Wed Nov 03, 2010 11:42

How / where exactly are you adding the libs? There are two ways to do it: either by adding the framework(s) to the "linked libraries" box in the bottom half of the "General" options in the inspector window for your app target, or by adding, for example "-framework CEGUIBase" to the additional linker flags setting in the "Build" options of the inspector window. Either of these should be fine, anything else will probably not work :)

CE.

azrialelf
Just popping in
Just popping in
Posts: 7
Joined: Sun Jul 08, 2007 21:36

Re: Error compiling when I add CEGUI to my project

Postby azrialelf » Wed Nov 03, 2010 13:40

I tried both those methods, but just to be sure I'll try again today just in case. Maybe it was something stupid I was doing and I just needed a night to sit on it.
Thanks

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Error compiling when I add CEGUI to my project

Postby Kulik » Wed Nov 03, 2010 13:44

I have no idea about XCode but just adding *paths* won't help. You also have to add libs to linker input (CEGUIBase.lib on Linux).

azrialelf
Just popping in
Just popping in
Posts: 7
Joined: Sun Jul 08, 2007 21:36

Re: Error compiling when I add CEGUI to my project

Postby azrialelf » Wed Nov 03, 2010 14:13

Unfortunately there aren't any lib files included the mac SDK, only .framework files. At least to my understanding (are they built somewhere after running the sample project?)

azrialelf
Just popping in
Just popping in
Posts: 7
Joined: Sun Jul 08, 2007 21:36

Re: Error compiling when I add CEGUI to my project

Postby azrialelf » Wed Nov 03, 2010 23:56

Ok I tried the second point CE gave me, about adding "-framework CEGUIBase" to the "Other Linker Flags" of my Target, however now when I build I get a single error - "Framework not found CEGUIBase".

How do I add that framework's path to Xcode so it knows what I'm talking about?

azrialelf
Just popping in
Just popping in
Posts: 7
Joined: Sun Jul 08, 2007 21:36

Re: Error compiling when I add CEGUI to my project

Postby azrialelf » Thu Nov 04, 2010 00:08

Hrm, I'm betting it's the "Framework Search Paths" field.
It gets auto-populated to the path I browse to when I add the framework manually to the target Linked Libraries in the General tab.
However when I put the path in I get the errors still. I'm quite confused.
I'm thinking it's gotta be something to do with building for iPhone, cuz the sample builds no problem.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 9 guests