[SDL] [MAC OS X, XCODE 2]Linker Problem
Thomas Schober
schober.t at web.de
Mon Jul 17 11:28:58 PDT 2006
Hi,
Im trying to develop with SDL and SDL_image in XCODE on Mac OS X Tiger.
Everytime i call a IMG_Load() function, i get a linker error, that the
function SDL_ERROR cannot be found. But if i compile it with a makefile it
works witout problems. The SDL_Image Framework is added to the Xcode Project
correctly. Does anyone know whats the fault about this ?
The error output of Xcode is like this :
"-F/Library/Frameworks" -filelist "/Users/thomasschober/xcode
Projekte/SDLtest/build/SDLtest.build/Development/SDLtest.build/Objects-norma
l/LinkFileList" "-arch" "ppc" "-prebind" "-Wl,-no_arch_warnings"
"-framework" "SDL" "-framework" "Cocoa" "-framework" "SDL_image"
/usr/bin/ld: warning prebinding disabled because dependent library:
@executable_path/../Frameworks/SDL_image.framework/Versions/A/SDL_image is
not prebound
/usr/bin/ld: Undefined symbols:
_SDL_Error referenced from
@executable_path/../Frameworks/SDL_image.framework/Versions/A/SDL_image
expected to be defined in SDL
collect2: ld returned 1 exit status
/usr/bin/ld: warning prebinding disabled because dependent library:
@executable_path/../Frameworks/SDL_image.framework/Versions/A/SDL_image is
not prebound
/usr/bin/ld: Undefined symbols:
_SDL_Error referenced from
@executable_path/../Frameworks/SDL_image.framework/Versions/A/SDL_image
expected to be defined in SDL
collect2: ld returned 1 exit status
Build failed (2 errors, 1 warning)
It is caused by this function call :
pic =(SDL_Surface *)IMG_Load("24PArialN.png");
If i just use SDL it works, but who wants to use Bitmaps in BMP format ?
Thanks for any Help
Tom
More information about the SDL
mailing list