SFML community forums

Help => Window => Topic started by: PaulTheGeek on August 22, 2012, 04:47:05 am

Title: library not found for -lsfml-system in Xcode 4.4.1 using SFML 2.0
Post by: PaulTheGeek on August 22, 2012, 04:47:05 am
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?
Title: Re: library not found for -lsfml-system in Xcode 4.4.1 using SFML 2.0
Post by: Hiura on August 22, 2012, 10:40:10 am
Solution to this issue is described here (https://github.com/SFML/SFML/issues/233).
Title: Re: library not found for -lsfml-system in Xcode 4.4.1 using SFML 2.0
Post by: PaulTheGeek on August 22, 2012, 04:42:51 pm
Thanks!! Editing the templates worked like a charm.