Thanks for the response.
Unfortunately, the framework is in the target. When it was added to the project it immediately wint into the “Link Binary With Libraries” step in the target. Here’s the linker call.
Ld /test/Projects/SDL_gfx/build/Development/SDL_gfx.framework/Versions/A/SDL_gfx normal i386
cd /Humagade/Projects/SDL_gfx
/usr/bin/gcc-4.0 -o /test/Projects/SDL_gfx/build/Development/SDL_gfx.framework/Versions/A/SDL_gfx -L/test/Projects/SDL_gfx/build/Development F/test/Projects/SDL_gfx/build/Development -F/Users/ttongue/Library/Frameworks -filelist /test/Projects/SDL_gfx/build/SDL_gfx.build/Development/SDL_gfx\ (Upgraded).build/Objects-normal/i386/SDL_gfx.LinkFileList
-framework SDL -framework OpenGL -framework Cocoa -arch i386 -prebind -Wl,-single_module -compatibility_version 1 -current_version 1 -install_name @executable_path/../Frameworks/SDL_gfx.framework/Versions/A/SDL_gfx -dynamiclib
The line “-framework SDL” is the important one, I guess.
This is blowing my mind! The only other possibile solutions I can think of (although they didn’t work or I don’t know how to act on a possible solution) are:
-
needing other frameworks in the target (I tried this with a bunch of them…at one point, all frameworks from /System/Library/Frameworks…but with no success)
-
not linking to the proper framework (I downloaded SDL-1.2.9.dmg from www.libsdl.org, the runtime library…somebody had mentioned using the development library download, which is SDL-devel-1.2.9, but it only contained docs and project templates that haven’t offered much help)
-
some linker or compile setting is wrong
-
something to do with Obj-C (SDL requires some Obj-C stuff, SDLmain.m/h, but I’m not building an executable, so that shouldn’t matter…plus, that doesn’t resemble the problem)
Any ideas? If there is any other information I can provide, please don’t hesitate to ask!
Thanks,
Ryan
“James Turner” wrote in message news:8A18B67F-58DC-4602-8863-A4383110DE88 at mac.com…On 6 Apr 2006, at 15:28, Michael Ryan Bannon wrote:
Undefined symbols:
_SDL_Delay
_SDL_GetTicks
_SDL_CreateRGBSurface
_SDL_FreeSurface
_SDL_LockSurface
_SDL_MapRGB
_SDL_MapRGBA
_SDL_SetAlpha
_SDL_UnlockSurface
_SDL_UpperBlit
_SDL_SetColorKey
In my Xcode project, I've simply taken all the .c/.h files and added them,
along with the reference to the SDL framework.
Please help! I can't imagine what I could be doing wrong.
I’m guessing you added the SDL framework to the /project/, but not to your /target/. If you look at the detailed build log for your target, the link command should include ‘-framework SDL’ somewhere amongst all the other stuff; if it doesn’t, this is definitely your problem. You can just drag the framework in the appropriate section of your target in the X-Code tree view, and it should be added in.
James
–
Some people, when confronted with a problem, think ?I know, I?ll use regular expressions.? Now they have two problems.
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl