Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: SDL2/SDL.h #23

Open
Rohit-Region opened this issue Sep 20, 2020 · 1 comment
Open

fatal error: SDL2/SDL.h #23

Rohit-Region opened this issue Sep 20, 2020 · 1 comment

Comments

@Rohit-Region
Copy link

root@kali:~/ICSim# gcc -I/usr/include/SDL2 -c -o icsim.o icsim.c
icsim.c:19:10: fatal error: SDL2/SDL.h: No such file or directory
19 | #include <SDL2/SDL.h>
| ^~~~~~~~~~~~
compilation terminated.

@collin80
Copy link

I assume you installed SDL2 and you know the headers are in /usr/include/SDL2? Well, in that case you want your include directory to be /usr/include because the #include line shows a directory in it: SDL2/SDL.h. So, try -l/usr/include instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants