Help me for Linker error rpls

When i use IMG_Load function i get this error:Undefined reference to IMG_Load
I'm using this linker: -lSDLmain -lSDL -lmingw32 -lSDL_image
Using Codeblocks


When i used that code on Dev-Cpp i get this error:
File format not recognized.

Help me pls
Help me pls.I'm sure somebody knows that.
closed account (zb0S216C)
First, and most importantly, swap Dev-C++ with a modern compiler, such as MinGW, or Visual C++.

As for your problem, it screams: "You haven't linked the library where the definition of IMG_Load resides!". Have you linked the libraries?

Wazzak
I have linked libraries .As you said its probaly compiler problem.I'm going to try with Visual C++.

Thanks.
Topic archived. No new replies allowed.