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.exeand getting this error:
Quote
/usr/bin/ld: cannot find -lsfml-window-sI can compile with shared library without any problem.
/usr/bin/ld: cannot find -lsfml-system-s
/usr/bin/ld: cannot find -lsfml-graphics-s
collect2: error: ld returned 1 exit status