Skip to content

fails if library has main()

I need to link against a library (/usr/lib/libf2c.a)
that includes a definition of main().  When I try to
link a program (ghc ... -lf2c), it uses the definition
of main() from that library.

The workaround is to link with -lHSrts -lf2c.

This should at least be documented (with a description
of the workaround), if not fixed.

(Let me know if you need a full test case, reproduction
scenario, etc.)
Trac metadata
Trac field Value
Version 5.02
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedWon'tFix
Component Driver
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information