I’m trying to get the SDL test apps to link on my Mac, but am having
trouble. I’m working with SDL 1.1.1, CW Pro 5 with the latest updates
(IDE 4.0.4). The linker complains as follows for the “testwin” test:
Link Error : undefined ‘SDL_Delay’ (code)
Referenced from ‘SDL_main’ in testwin.c
Referenced from ‘DrawPict’ in testwin.cLink Error : undefined ‘SDL_UpdateRects’ (code)
Referenced from ‘DrawPict’ in testwin.cLink Error : undefined ‘SDL_Flip’ (code)
Referenced from ‘DrawPict’ in testwin.cLink Error : undefined ‘SDL_UpperBlit’ (code)
Referenced from ‘DrawPict’ in testwin.cLink Error : undefined ‘SDL_FreeSurface’ (code)
Referenced from ‘DrawPict’ in testwin.cLink Error : undefined ‘SDL_DisplayFormat’ (code)
Referenced from ‘DrawPict’ in testwin.cLink Error : undefined ‘SDL_UpdateRect’ (code)
Referenced from ‘DrawPict’ in testwin.cLink Error : undefined ‘SDL_UnlockSurface’ (code)
Referenced from ‘DrawPict’ in testwin.cLink Error : undefined ‘SDL_MapRGB’ (code)
Referenced from ‘DrawPict’ in testwin.cLink Error : undefined ‘SDL_LockSurface’ (code)
Referenced from ‘DrawPict’ in testwin.cLink Error : undefined ‘SDL_SetColors’ (code)
Referenced from ‘DrawPict’ in testwin.cLink Error : undefined ‘SDL_LoadBMP_RW’ (code)
Referenced from ‘DrawPict’ in testwin.cLink Error : undefined ‘SDL_RWFromFile’ (code)
Referenced from ‘DrawPict’ in testwin.cLink Error : undefined ‘SDL_GetTicks’ (code)
Referenced from ‘SDL_main’ in testwin.cLink Error : undefined ‘SDL_WM_SetCaption’ (code)
Referenced from ‘SDL_main’ in testwin.cLink Error : undefined ‘SDL_SetVideoMode’ (code)
Referenced from ‘SDL_main’ in testwin.cLink Error : undefined ‘SDL_GetError’ (code)
Referenced from ‘DrawPict’ in testwin.c
Referenced from ‘SDL_main’ in testwin.cLink Error : undefined ‘SDL_InitQuickDraw’ (code)
Referenced from ‘main’ in SDL_main.cLink Error : undefined ‘SDL_Quit’ (descriptor)
Referenced from ‘SDL_main’ in testwin.c
Referenced from ‘main’ in SDL_main.cLink Error : undefined ‘SDL_Init’ (code)
Referenced from ‘SDL_main’ in testwin.c
Referenced from ‘main’ in SDL_main.c
I’ve precompiled the SDL.DEBUG.PPC.LIB shared library, so that’s not the
problem. I suspect that I’m just not exporting the right symbols in that
library or something. Anyone else run into problems and have a quick
solution? I’m going to dig into the CW docs…
-Roy