I followed this tutorial for installing sfml 2.0 and I am having issues compiling, I have tried many variations of the scripts below. I am using the code in this tutorial.
this is what I tried doing
g++ main.o -o -I/home/hassan/Development/sfml –this compiles
however
g++ main.o -o -L/home/hassan/Development/sfml/lib -lsfml-graphics -lsfml-window -lsfml-system
does not
“/usr/bin/ld: cannot open output file -L/home/hassan/Development/sfml/: No such file or directory”
thank you
From “man g++”:
The -o option of g++ expects an output file as parameter. So in the line
you are telling to put the executable into the file “-L/home/hassan/Development/sfml/lib”, which does not really make sense.
Try