New to SDL & can't seem to find what I'm looking for.

Hello,

I discovered SDL today, and would like to use it in a C project I am working on. However, I have no clue as to how to use SDL, and any information that I have found online has gone right over my head. Does SDL have an installer for Windows? If it does I can’t seem to find it anywhere. I found a GitHub page with different zips that can be downloaded but none of the files I thought were for windows contained an executable file. I did find some information about SDL being installed on the C drive but I cannot find it anywhere.

Any answers would be greatly appreciated, and I apologise in advance if I have posted this in the wrong place, feel free to move it if so.

Thanks in advance!

It doesn’t need an installer, simply extract the file(s) you need from the relevant zip(s) to your project. As a minimum you will need the DLL (sdl2.dll or sdl3.dll depending on the version you want to use) and probably some header files. You may find the Lazy Foo’ Tutorials helpful.

1 Like

I checked out that tutorial and there seems to be a lot of really good information in there. Hopefully now I can set it up instead of always being told “no such file or directory” when I try to compile. I have been trying to get this working for 2 days now and it’s starting to take its toll.

Thank you for the information!

what is your IDE/text editor? what compiler are you using? how do you run your build? where? have you ever coded a multi-file project?

let me tell you from personal experience. configuring an IDE such as Visual Studio is a huge PITA, while MSYS2 + pkgconf is a godsend bliss.