cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Help me for Linker error rpls
Help me for Linker error rpls
Feb 26, 2012 at 2:03pm UTC
AcarX
(130)
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
Feb 29, 2012 at 3:43pm UTC
AcarX
(130)
Help me pls.I'm sure somebody knows that.
Feb 29, 2012 at 3:48pm UTC
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
Feb 29, 2012 at 7:17pm UTC
AcarX
(130)
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.