ICSim
ICSim copied to clipboard
fatal error: SDL2/SDL.h
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.
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