[Haskell-cafe] HaskellWiki page about SDL

Henk-Jan van Tuyl hjgtuyl at chello.nl
Fri Aug 15 22:41:51 UTC 2014


FYI

On Fri, 15 Aug 2014 01:26:09 +0200, Irene Knapp <irene.knapp at icloud.com>  
wrote:

> For some reason, although I’m subscribed to the mailing list, I’m not  
> allowed to send stuff to it (not that I’ve ever wanted to before).   
> Sorry for the private reply!  Feel free to forward it to the list if you  
> wish.
>
> I haven’t tried in a while, but the problem is that on OS X, the SDL  
> library defines its own main() which invokes the user-provided main(),  
> and the C header file does #define main _SDL_main to make this “work” as  
> long as an FFI isn’t involved.
>
> I checked the SDL Mercurial repo, and it still does this:
>
> http://hg.libsdl.org/SDL/file/74356aed1fa2/include/SDL_main.h  
> <http://hg.libsdl.org/SDL/file/74356aed1fa2/include/SDL_main.h>
>
> So yes, the problem still exists.  There is no easy workaround, either;  
> for Haskell code to run as a library rather than an executable requires  
> a special wrapper in C to initialize the runtime.
>
> Irene
>
>> On Aug 14, 2014, at 3:43 PM, Henk-Jan van Tuyl <hjgtuyl at chello.nl>  
>> wrote:
>>
>>
>> L.S.,
>>
>> Does the problem with SDL on OS X, as mentioned on the HaskellWiki page  
>> about SDL[0], still exist? This text is quite old and I would like to  
>> remove it.
>>
>> Regards,
>> Henk-Jan van Tuyl
>>
>>
>> [0] https://www.haskell.org/haskellwiki/SDL#Haskell-SDL_with_Mac_OS_X


Regards,
Henk-Jan van Tuyl


-- 
Folding at home
What if you could share your unused computer power to help find a cure? In  
just 5 minutes you can join the world's biggest networked computer and get  
us closer sooner. Watch the video.
http://folding.stanford.edu/


http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--


More information about the Haskell-Cafe mailing list