0

after using the following inlcudes and make file:

all: g++ -IC:\Users\Caleb\SDLTemplate\ -l src/lib -o main main.cpp -lmingw32 -lSDL2main -lSDL2

with this include #include <SDL2/SDL.h>

its keeps saying:

PS C:\Users\Caleb\Desktop\SDLTemplate> g++ -IC:\Users\Caleb\SDLTemplate\ -l src/lib -o main main.cpp -lmingw32 -lSDL2main -lSDL2 main.cpp:2:22: fatal error: SDL2/SDL.h: No such file or directory #include <SDL2/SDL.h> ^ compilation terminated.

I tried looking for answers but they all just suggest using #inlcude<SDL2/SDL.h>

drescherjm
  • 10,365
  • 5
  • 44
  • 64

0 Answers0