-lSDL_image linking problem code blocks...ARGH

I always had this problem last time I installed it, I want to get up and running again but I have come across yet another hurdle, the thing about searching for this problem is that its so so so common yet not one of anyone elses answers solved mine!

first, the code I wrote works perfectly well for SDL_LoadBMP!
second, I used -lSDL_image before and after -lSDL in the linker settings
third, I put the header with the headers the .lib with the other .libs and the dlls in system 32!

fourth, my images are in the right place!

this is the error;

1
2
3
mingw32-g++.exe -L"C:\Documents and Settings\devonrevenge\My Documents\Downloads\SDL-1.2.15\lib"  -o bin\Debug\sdlproject#1.exe obj\Debug\main.o   -lmingw32 -lSDLmain -lSDL -lSDL_image -pg -lgmon -lmingw32 -lSDLmain -lSDL_image -lSDL  
obj\Debug\main.o: In function `Z10load_imageSs':
C:/Documents and Settings/devonrevenge/My Documents/My Music/sdlproject#1.2/main.cpp:18: undefined reference to `IMG_Load'


Any ideas?
Last edited on
Bucking Fump
Fumping Buck
Buping Fumbuck
Last edited on
I don't know what the problem is but maybe your problem is the same as this guy had. http://www.elfnet.org/2011/11/30/sdl-undefined-reference-img_load-solved/
*Cries*
I used the 64 bit .lib and .dll's by mistake not the 84!!!
Topic archived. No new replies allowed.