Advertisement

Problem with SDL_image on Ubuntu

Started by March 31, 2011 06:12 PM
2 comments, last by sreaper2 13 years, 8 months ago
Hello

i program since a couple of weeks with SDL on Ubuntu 10.10. Now i have the problem that when i want to use the library "SDL_image", I become the error "undefined reference to IMG_Load".
I've searched already on gamedev but the only answer was, how i can solve this problem with g++. But this is not very useful because I use CodeBlocks 10.05.

I hope you can help me :)
Code::Blocks most likely uses g++ in your case. Try add -lSDL_image to your compiler flags. I don't use Code::Blocks so I don't know exactly how to change that.
Advertisement
Hello,

Please take a look at this picture
http://bildr.no/view/199632

I got it from [url="http://www.futuredesktop.org/codeblocks_on_ubuntu_9.04.html"]this..[/url] (veeery) old document.

Alex
http://www.futuredesktop.org (.com)
Thanks for your solutions. My problem is solved :D

This topic is closed to new replies.

Advertisement