1
General / Re: Linking sfml with g++
« on: October 29, 2013, 06:43:11 pm »
Just as a reference. I had the exact same problem but It was my fault as I've compiled sources myself. In my case the library directory used during cmake configuration was /usr/local/lib instead of the more common /usr/lib. For me just linking with the -L option to add the correct lib directory fixed the issue:
g++ main.o -o m -L /usr/local/lib/ -lsfml-graphics -lsfml-window -lsfml-system
Hope this helps somebody else.
Cheers!
g++ main.o -o m -L /usr/local/lib/ -lsfml-graphics -lsfml-window -lsfml-system
Hope this helps somebody else.
Cheers!