is there a way to use SDL in c?
I would like to use SDL in c, but I have no idea how I would go about it. Do you have any idea?
Voters
Coder100
#include <sdl2/sdl2.h>
iirc
RYANTADIPARTHI
Here's a link that tells. Just look at the c part.
https://www.geeksforgeeks.org/sdl-library-in-c-c-with-examples/
oops i was wrong
https://repl.it/@Coder100/OtherBiodegradableCores-aeouae-u#main.c
@Coder100 Wow! I expected I had to do way more than that, but it works! thanks a lot.
np! @meijeronfire
@Coder100
I forked the Repl and ran it, it worked. But when I typed the same after creating a new repl, it showed the error : "fatal error: SDL2/SDL.h: No such file or directory".