Changes between Initial Version and Version 2 of Ticket #2083


Ignore:
Timestamp:
Feb 16, 2008 1:41:26 PM (6 years ago)
Author:
igloo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2083

    • Property Difficulty changed from to Unknown
    • Property Summary changed from linker reports missing symbols Main.c:(.text+0x12): undefined reference to `__stginit_ZCMain' Main.c:(.text+0x2c): undefined reference to `ZCMain_main_closure' to linker reports missing symbols Main.c:(.text+0x12): undefined reference to `__stginit_ZCMain'
  • Ticket #2083 – Description

    initial v2  
    33the undefined references. 
    44for the minimal program 'hello world' i get  
     5{{{ 
    56Main.c:(.text+0x12): undefined reference to `__stginit_ZCMain' 
    67Main.c:(.text+0x2c): undefined reference to `ZCMain_main_closure' 
     8}}} 
    79for more interesting programs i get a lot more (i have experimented with wxhaskell and phooey, tv, eros -- and some problems with compiling them in the right order etc..) 
    810 
    911suprisingly the problem goes away if the program is called Main.hs - then it links properly, but not when it is called Test.hs. the same program with  
     12{{{ 
    1013main = putStr.... 
    11  
     14}}} 
    1215according to the ghc documentation, it is permitted to have in file Test.hs the module main. 
    1316(and it works properly in ghci)