-Hi, i'm working on a game project using cpp and SFML I try to compile it into a binary file for execute using this
g++ main.o -o sfml-app -I /path/to/sfml/include -lsfml-graphics -lsfml-window -lsfml-system
and
./sfml-app
But the file didn't work and just keep follow the old codes after i change it, i have tried to delete the binary and compile again but didn't work either
main.o) your g++ command is just linking not compiling - the resulting binary won't reflect any changes you made to the any source code files such asmain.cpp(unless you already re-compiledmain.cppto a newmain.o)