cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
SDL.h No such file or directory
SDL.h No such file or directory
Mar 22, 2017 at 4:34pm UTC
SoLix09
(1)
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?
Mar 22, 2017 at 7:09pm UTC
Peter87
(11238)
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.