Changes between Initial Version and Version 1 of Ticket #5428


Ignore:
Timestamp:
Aug 25, 2011 9:48:48 AM (4 years ago)
Author:
simonmar
Comment:

It looks like you had already compiled lec1.lhs without the -main-is option, and then added the -main-is option later. Could that be the case? Could you try from scratch, deleting all the .o and .hi files first?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5428 – Description

    initial v1  
    33For example:
    44
     5{{{
    56sweirich$ ghc --make lec1.lhs -o hello -main-is Lec1
    67Linking hello ...
     
    1415collect2: ld returned 1 exit status
    1516sweirich$
     17}}}
    1618
    1719on the other hand, if I rename the file 'Main.lhs' and edit the
    1820module name to 'Main' then everything works correctly.
    1921
    20 
     22{{{
    2123sweirich$ ghc --make Main.lhs
    2224[1 of 1] Compiling Main             ( Main.lhs, Main.o )
     
    2628sweirich$ ./Main
    2729Hello World!
    28 
     30}}}