SDL.h No such file or directory


I get this error: http://imgur.com/a/ltM93

Everything works ok with SDL until i try to use the image or mixer libs,everything is set up correctly i think :
-https://gyazo.com/eeeed0a4f56828ad47337a988c0ade5f
-https://gyazo.com/e5883e6aa46021f773c9ec50e782ff0c
-https://gyazo.com/1c24eaa28fcdc89d509eb0a2a6ba0e39
-https://gyazo.com/663e0fcc2ba427645a5382cdd96d8d1c

What am i missing or not doing?
Instead of -lSDL2 I think you should use `sdl2-config --libs`.
And to your compiler flags I think you should add `sdl2-config --cflags`.
Topic archived. No new replies allowed.