Codeblocks not finding libs, permission denied

Pages: 12
Click create new project. Then click SDL project. Wala

*edit just checked there is option for SFML also.

*also I think you have to tell it the folder you have sdl/sfml. You shouldnt have to link it if you do it this route. Though linking is fairly easy. TO link SDL go to
settings->compiler->linkersettings and put -lmingw32 -lSDLmain -lSDL -lSDL_image

then click on the search directories tab->compiler tab and include the "include" folder. now go to the linker tab and put the "lib" folder. Lastly add the .dll to the debug folder (where your .exe is)

If you still need help:

http://lazyfoo.net/SDL_tutorials/lesson01/index.php
Last edited on
closed account (NUj6URfi)
I tried that and I got the error from the beginning.
closed account (NUj6URfi)
Well? I have installed sdl before but I was forced to switch compilers.
closed account (NUj6URfi)
Please help.
What exactly is not working for you? Also why were you "forced" to switch compiler and what compiler are you using now?
closed account (NUj6URfi)
I am using code::blocks. I switched because dev-c++ is outdated. My error from the beginning is
ld permission denied <filepath to folder with libs>

and none of my libs are being registered.
closed account (NUj6URfi)
Well?
closed account (Dy7SLyTq)
are they controlled by admin?
closed account (NUj6URfi)
What do you mean? I am on the admin account.
Topic archived. No new replies allowed.
Pages: 12