Error to run SDL in code block

Hi guys;

I have problem in use SDL with code block, I followed this tutorial http://lazyfoo.net/SDL_tutorials/lesson01/windows/codeblocks/index.php

but when I build and run the code, I get error “cannot find -lSDL” :frowning:
what’s the problem

all the best

which codeblocks are you using ?

I have this one
codeblocks-16.01mingw-setup.exe

look at lazyfoo’s instructions and make sure you’re installing the 32 bit version of sdl

then when you start codeblocks
from the menu chose
Project / Build Options

and then check the box that says
Target x86 (32 bit) [-m32]

do it fpr both the debug and release versions