zombieCraig / ICSim

Instrument Cluster Simulator
GNU General Public License v3.0
794 stars 217 forks source link

fatal error: SDL2/SDL.h #23

Open Rohit-Region opened 4 years ago

Rohit-Region commented 4 years ago

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 commented 4 years ago

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