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

Author Topic: library not found for -lsfml-system in Xcode 4.4.1 using SFML 2.0  (Read 3479 times)

0 Members and 1 Guest are viewing this topic.

PaulTheGeek

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
I installed 2.0 using the OSX installer from the download page. I am trying to run the simple window tutorial, but I receive this error:

ld: library not found for -lsfml-system
clang: error: linker command failed with exit code 1 (use -v to see invocation)

However I can compile and run the program when I reference the libraries in the terminal with this command:

g++ -I SFML/include window.cpp -o window.out -lsfml-system -lsfml-window

To be clear when I compile from terminal it is the same code but in a folder sitting on the desktop with the SFML folder sitting in the same folder with the file. I am not sure that helps explain what is going on.

Anyone have an idea of what is going on?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: library not found for -lsfml-system in Xcode 4.4.1 using SFML 2.0
« Reply #1 on: August 22, 2012, 10:40:10 am »
Solution to this issue is described here.
SFML / OS X developer

PaulTheGeek

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: library not found for -lsfml-system in Xcode 4.4.1 using SFML 2.0
« Reply #2 on: August 22, 2012, 04:42:51 pm »
Thanks!! Editing the templates worked like a charm.