> Ok, I have made a "ghc -v"and see the problem :
> 
> * on OS X, a SDL program must have a main function supplied 
> by a lib : 
> libSDLmain.a
> * This is achieved by adding -lSDLmain at the command line.
> 
> * libHSrts.a supply a main. My program is linked against this 
> lib by a -lHSrts.
> 
> ld is called by ghc with args :
> [...] lHSrts [...] -lSDLmain [...]

Hmm, I just checked the source, and GHC definitely calls the linker
passing any -l options from the command line *before* -l options from
packages (-lHSrts comes from the rts package).  And I just tried a small
example with -lfoo on the command line, and it does indeed come before
-lHSrts.

So could you post *exactly* what you're doing, the full command lines
and the full output from ghc -v so we can see what's going wrong.

Cheers,
        SImon
_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to