I am trying to use SDL2 with C++, but have spent months trying to get it working.
at the top of my script, I have:
#include <SDL2/SDL.h>
in my include path, I have:
"${workspaceFolder}/include"
and my file structure is:
ProjectincludeSDL2
the sdl2 header files are in the SDL2 folder.
when running, I get this error for whatever reason:
fatal error: SDL2/SDL.h: No such file or directory
1 | #include <SDL2/SDL.h>
| ^~~~~~~~~~~~
New contributor
Will Warne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.