[SOLVED] CodeBlocks and linking SDL

view story

http://ubuntuforums.org – I'm having a hard time getting CodeBlocks to link SDL and it's libraries. There is no error in the code as I've compiled it on Windows but I can't seem to get the compile and links to work on Ubuntu. I've downloaded SDL through: apt-get install libsdl1.2-dev as well as SDL Image through: apt-get install libsdl-image1.2-dev Now my current settings for CodeBlocks are Linker Settings >> Other linker options >> -lSDLmain -lSDL -lSDL_image Search Directories >> Compiler >> /usr/include/SDL When compiling I get: -------------- Build: Debug in motion ---------- (Hardware)