[SDL] linking OSX SDL in a dynamiclib without main?
Asko Kauppi
askok at dnainternet.net
Tue Aug 1 15:47:51 PDT 2006
So, did you get it working? Don't think so.
There's been multiple separate threads on this, during the last 6
months and under different titles. One of them states, setup code
for OS X graphics (actually, Objective-C) could be done outside of
the main, in connection to SDL_Init. This would be All That We Need,
really.
This is a stone in the shoe that must go?
-asko
james tittle kirjoitti 13.6.2006 kello 18.17:
> ...nevermind: I woke up and realized I could just use "-undefined
> suppress"...
>
> humdeedumdeedum,
> james
>
> On Jun 12, 2006, at 11:48 PM, james tittle wrote:
>
>> ...I've got a dynamiclib that needs to link to SDL (I'm not using the
>> framework, but instead using the unix-y SDL via fink), because the
>> library is used by several other applications...but when trying to
>> link, I get the following:
>>
>> /usr/bin/ld: Undefined symbols:
>> _SDL_main
>>
>> ...Even if I don't use 'sdl-config --libs' and instead just add "-L/
>> sw/lib -lSDL" to LDFLAGS, I still get a missing _main, in addition to
>> a bunch of other osx symbols that I don't see when use sdl-config...
>
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
More information about the SDL
mailing list