Yes this is stupid but can you please guide me on where to get the libraries you suggest me to learn and how to include those libraries ? :|
This is the SDL website.
(This is only my bare understanding of it)...
When linking to a library, you #include it in your code, it can be anything from math.h to SDL/graphics.h or something similar to that, but the tricky part is when you come to the actual compilation of the program. For math.h it is just -lm because you are going to use the -l flag for Library and what library you're going to link to... that one's called *M*ath, so we'll use -lm.
I would suggest crafting a compile command once, and then putting it in a Makefile. it's a whole easier to type "make" rather than gcc etc...etc... over and over again.
Here is another way you could link to the SDL libraries by using a Makefile, but it uses another (easier) approach by using cflags and such... I haven't had the need for that yet except when messing with geany. Good luck on your adventures with SDL