fist donloawd and extract file SDL-1.2.13
1.Open folder SDL-1.2.13 2.Copy all the files from folder 'include' 3.Go to C:\Program files\CodeBlocks\MinGW\include 4.Create a new folder 'SDL' inside folder 'include' and paste the files there. 5.Similarly copy all files from folder 'lib' and paste them to
C:\Program files\CodeBlocks\MinGW\lib 6.Copy all files from 'bin' to C:\Program files\CodeBlocks\MinGW\bin and also
paste those files to C:\Windows\System32. (If during execution of SDL program it says
'*(something).dll' is missing then paste those files of 'bin' to C:\Windows too.) Now open CodeBlocks Goto Settings--> Compiler and Debugger Under the 'Linker Settings' Tab type or copy paste the following in
'Other linker options:' box -lmingw32 -lSDLmain -lSDL -lSDL_ttf -lSDL_image -lSDL_mixer