1
General / Re: Help! Wierd output without errors building on Linux - 32bit.
« on: April 17, 2016, 06:03:15 pm »g++ -c sfmltest.cpp -o sfml.app -L</user/include/SFML> -lsfml-graphics -lsfml-window -lsfml-system
There are a number of problems with this command. Try this instead:
g++ sfmltest.cpp -o sfml.app -lsfml-graphics -lsfml-window -lsfml-system
- You are passing -c to g++. This causes g++ to output object files instead of executables.
- The < and > characters are not passed to g++, they are special characters interpreted by your shell to perform redirection (write output of a command to a file). This is where your empty "-lsfml-graphics" file came from.
- If you are using the repositories of your distro, the sfml libraries are probably already by in your linker path so the -L option isn't needed at all.
In any case, re-read this page again:
http://www.sfml-dev.org/tutorials/2.3/start-linux.php