

Screw the rest (in particular, forget about sdlconfig - it will not work).Be cautious, however, not to find yourself in DLL hell afterwards. This will save you from copying the dll to each and every project directory while developing. Optionally, copy SDL.dll to C:\Windows, too.Be sure to copy the folder, not the individual files.

#CODEBLOCKS SETUP DOWNLOAD WINDOWS#
Copy SDL.dll from inside the bin folder to the your compilers bin directory (ie C:\Mingw\bin) This allows the compiler to find the dll at runtime time without having to put it in the same folder as your program or in the windows folder.There are binary packages for several Linux distributions, too ( rpm may have problems downloading directly from, use wget to get the packages in that case).
#CODEBLOCKS SETUP DOWNLOAD DOWNLOAD#
Download SDL-devel-1.2. from the SDL version 1.2.9 download page.Some archiving program (tar, 7z, WinZip, PowerArchiver.pro: need to download one file, setup time ~20 seconds.If you are only interested in writing a SDL application and care little about esoteric compiler switches, then the pre-built libraries are probably good enough for all your needs, so there is little reason to waste your time compiling your own. The easiest of all possibilities is to just download the SDL binary distribution directly from. The uglier variants have the advantage of better configurability, but are more error-prone and may take significantly more time to set up. In memory of Sergio Leone's best movie, I will call these "the Good", "the Bad", and "the Ugly". There are many ways to get the necessary libraries and include files to set up SDL to be used with Code::Blocks, each of them having its own advantages and disadvantages. This article deals with SDL using Code::Blocks with the MinGW compiler, however the same steps will likely work with a different compiler (such as MSVC2003 toolkit) or under Linux, too (Linux users will of course not worry about DirectX). "The Good, the Bad, and the Ugly" - Setting up SDL 1 "The Good, the Bad, and the Ugly" - Setting up SDL.
