Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SVN + xcode sfml-graphics linking errors  (Read 2328 times)

0 Members and 2 Guests are viewing this topic.

dan_reidd@hotmail.com

  • Newbie
  • *
  • Posts: 6
    • View Profile
SVN + xcode sfml-graphics linking errors
« on: August 20, 2008, 02:16:13 pm »
Hi
I have just downloaded the svn release (tried revisions 811 and 805) and am getting errors. The process compiles all files without errors although gets errors whilst  linking. These are the errors i receive:

Undefined symbols:
  "sf::Window::ForceContextInit()", referenced from:
      sf::Renderer::Renderer()in Renderer.o
  "sf::Window::Window()", referenced from:
      sf::RenderWindow::RenderWindow()in RenderWindow.o
      sf::RenderWindow::RenderWindow(sf::VideoMode, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, sf::WindowSettings const&)in RenderWindow.o
      sf::RenderWindow::RenderWindow(void*, sf::WindowSettings const&)in RenderWindow.o
  "sf::Window::~Window()", referenced from:
      sf::RenderWindow::RenderWindow()in RenderWindow.o
      sf::RenderWindow::RenderWindow(sf::VideoMode, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, sf::WindowSettings const&)in RenderWindow.o
      sf::RenderWindow::RenderWindow(void*, sf::WindowSettings const&)in RenderWindow.o
      sf::RenderWindow::~RenderWindow()in RenderWindow.o
      sf::RenderWindow::~RenderWindow()in RenderWindow.o
      sf::RenderWindow::~RenderWindow()in RenderWindow.o
      sf::RenderWindow::~RenderWindow()in RenderWindow.o
  "typeinfo for sf::Window", referenced from:
      typeinfo for sf::RenderWindowin RenderWindow.o
  "sf::Window::SetActive(bool) const", referenced from:
      sf::RenderWindow::Activate(bool) in RenderWindow.o
      sf::RenderWindow::Capture() constin RenderWindow.o
  "sf::Window::Create(void*, sf::WindowSettings const&)", referenced from:
      sf::RenderWindow::RenderWindow(void*, sf::WindowSettings const&)in RenderWindow.o
  "sf::Window::OnEvent(sf::Event const&)", referenced from:
      vtable for sf::RenderWindowin RenderWindow.o
  "sf::Window::GetHeight() const", referenced from:
      sf::RenderWindow::GetHeight() constin RenderWindow.o
  "sf::Window::Create(sf::VideoMode, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, sf::WindowSettings const&)", referenced from:
      sf::RenderWindow::RenderWindow(sf::VideoMode, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, sf::WindowSettings const&)in RenderWindow.o
  "sf::Window::GetWidth() const", referenced from:
      sf::RenderWindow::GetWidth() constin RenderWindow.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

I know i am prob just missing something silly but i cant find it lol so any help would be great
Thanks
Dan

dan_reidd@hotmail.com

  • Newbie
  • *
  • Posts: 6
    • View Profile
SVN + xcode sfml-graphics linking errors
« Reply #1 on: August 21, 2008, 11:15:26 pm »
The original problem has been sorted with recent svn releases. I have compiled the new xcodeproj file and all compiles fine. Although when the produced frameworks are added into a project and ran i get __dyld_dyld_fatal_error and if i continue i get a "EXC_BAD_ACCESS" signal.
I have tried removing all uses of sfml within my project and then try running and i get errors. I remove the frameworks and it compiles and runs as expected (except the missing sfml of course)
I have tried building deployment and development frameworks with no luck

If you need any more information about the problem please tell me how to get extra information about call stacks etc. as i'm still getting to grips with xcode.

Thanks for your help so far
Dan

 

anything