Skip to main content
GameDev.net gamedev.net
🔒 Locked

Problem with SDL_image on Ubuntu

Started by sreaper2 Mar 31, 2011 at 6:12 PM 2 replies 3.8k views
Original Post
sreaper2
sreaper2
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
Wooh
Wooh
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.
sreaper2
sreaper2
Thanks for your solutions. My problem is solved

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.