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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mrfreeman

Pages: [1]
1
General / Arch Linux static compile
« on: September 09, 2016, 08:03:21 pm »
I'm trying to static compile my sfml program on arch linux, but I'm getting errors. I'm compiling with this command:
Quote
g++ game.cpp -lsfml-window-s -lsfml-system-s -lsfml-graphics-s -DSFML_STATIC -static-libgcc -static-libstdc++ -o game.exe
and getting this error:
Quote
/usr/bin/ld: cannot find -lsfml-window-s
/usr/bin/ld: cannot find -lsfml-system-s
/usr/bin/ld: cannot find -lsfml-graphics-s
collect2: error: ld returned 1 exit status
I can compile with shared library without any problem.

Pages: [1]