IMG_Load undefined error

Posts: 321
Joined: 2004.10
Post: #1
I'm using SDL's image loader IMG_Load(...) and I use the

#include <SDL_image/SDL_image.h>

to get the function prototype which it does because the compile is clean.
The linker is then giving me "Undefined Symbols _IMG_Load..."

OK, I need to find the/a Library that has IMG_Load() defined in it. Right?
And would this library also be called SDL_image? I see these rather ominous
black rectangle icons. One is called "SDL_image" and has in green lettering a note saying "Unix Executable File" Is this the "library"? I read where I could drag a library into my project. Where would I plop down a library in the project hierarchy?

Sorry if this is a stupid question. Libraries scare me. I think I understand them in theory but practice is a whole other matter.
Quote this message in a reply
Posts: 5,143
Joined: 2002.04
Post: #2
Drag the whole SDL_image.framework
Quote this message in a reply
Posts: 1,403
Joined: 2005.07
Post: #3
A framework is basically a folder with headers and a library in it

so you can add the framework to your project, or you can add the library & headers, if you do the latter you might want to change your includes instead of mucking about with search paths though.

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Undefined symbols for architecture i386: "_SCNetworkReachabilitySetCallback" sefiroths 1 6,691 Aug 19, 2011 05:45 AM
Last Post: sefiroths
  Undefined symbol &amp; getpixel Jones 7 4,261 May 21, 2006 01:14 AM
Last Post: OneSadCookie