The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Error to run SDL in code block
moot2011


Joined: 27 Jun 2016
Posts: 1
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" Sad
what's the problem

all the best
jamesL


Joined: 09 Jul 2016
Posts: 1
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