Here's my Makefile:
Expand|Select|Wrap|Line Numbers
- StarFire:
- g++ main.cpp -o main.exe -DSFML_STATIC -I F:\SFMLPrj\StarFirestc\Prefixes\include -L F:\SFMLPrj\StarFirestc\Prefixes\lib -lsfml-graphics-s -lsfml-window-s -lsfml-system-s -lopengl32 -lwinmm -lgdi32 -lfreetype
Basically when i run my test file for the first time,i include SFML header into that test file so when the compiler(MinGW) runs,it looks into the Makefile and know that i've included SFML headers there.But when i make a new class in the folder(Game.h and Game.cpp) i put the SFML into the 'Game.h' file then include it in the test file.
Not only i don't know how the compiler would look for SFML headers and libs from now on.I also don't know how it will look for the 'Game' class and a bunch of other classes i will make in the future.
Can anyone help me ?