IMG_Load undefined error
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.
#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.
Drag the whole SDL_image.framework
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.
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!
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Undefined symbols for architecture i386: "_SCNetworkReachabilitySetCallback" | sefiroths | 1 | 6,124 |
Aug 19, 2011 05:45 AM Last Post: sefiroths |
|
| Undefined symbol & getpixel | Jones | 7 | 3,982 |
May 21, 2006 01:14 AM Last Post: OneSadCookie |
|

