[ ghc-Bugs-466956 ] fails if library has main()
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 01 Oct 2001 13:01:19 -0700
Bugs item #466956, was opened at 2001-10-01 13:01
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=466956&group_id=8032
Category: Driver
Group: 5.00
Status: Open
Resolution: None
Priority: 5
Submitted By: Carl Witty (cwitty)
Assigned to: Nobody/Anonymous (nobody)
Summary: fails if library has main()
Initial Comment:
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.)
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=466956&group_id=8032