I created a make file to run a sdl2 window
Make file
all:
g++ -I src/include -L src/lib -o main.cpp -lmingw32 -lSDL2main -lSDL2
Opened a new terminal and the command ''make'' doesn't create my .exe file, it isn't really recognized at all
is there an easier way to use the cmd terminal to create an .exe file with sdl2?
I tried going the cmd path : g++ -o main main.cpp
and the result was:
main.cpp:2:10: fatal error: SDL2/SDL.h: No such file or directory
2 | #include <SDL2/SDL.h>
| ^~~~~~~~~~~~
compilation terminated.
So apparently the problem is that my file doesn't include SDL.h even tho it is present in the SDL folder.
Also cmd straight out deleted my ''main.cpp' file.
Also tried mingw32-make in the terminal and it also deleted my main.cpp file and found the same errors.