[SDL] [MAC OS X, XCODE 2]Linker Problem

E. Wing ewmailing at gmail.com
Mon Jul 17 22:41:28 PDT 2006


It's hard to say what's wrong from what's listed here. I am not able
to reproduce your problem. Your build lines look generally correct,
particularly -framework SDL -framework Cocoa -framework SDL_image. I
don't know why there are quotes around yours though. My Xcode lines do
not have the quotes.

Here are some things to check:

- Are both your SDL.framework and SDL_image.frameworks up-to-date? Are
these the official ones or ones you built yourself?

- Do you have multiple framework versions installed (perhaps one in
~/Library/Frameworks and one in /Library/Frameworks). It could be that
you're linking against the wrong ones.

- Are your frameworks Universal Binaries? It could be that only one
architecture is present and when you try linking against the missing
architecture, the symbols turn up missing. You can run lipo to find
this info, e.g. 'lipo -info SDL.framework/SDL' to find the built
archtectures.

You can also run nm to find if the symbols are present, e.g. 'nm
SDL.framework/SDL | grep SDL_Error'

-Eric




More information about the SDL mailing list