Ticket #3042 (closed bug: worksforme)
rts defines "real_main" which can clash with user C code
Description
I was just about to file a bug about ghc -no-hs-main not working but it turns out it is just because I had a real_main C function in my .c file. This ends up clashing with the C function of the same name from the rts package. This means that when linking we pull in the wrong one and the rts one needs __stginit_ZCMain and ZCMain_main_closure which is what the linker error message reports (which is rather confusing).
Suggestion: rename the rts real_main to something less likely to clash with user code.
Change History
Note: See
TracTickets for help on using
tickets.
