
ons 2002-06-12 klockan 18.41 skrev Dufflebunk:
Hello, I'm not subscribed to this list, so please make sure you CC to me if you reply. I just installed nhc98 (from source) and tried to compile a simple program: module Test where main = return () Here is the result: $ nhc98 test.hs /usr/lib/nhc98/ix86-Linux/Prelude.a(_Driver.o)(.data+0x88): undefined reference to `CF_Main_46main' collect2: ld returned 1 exit status $
This is the first "program" I've tried to write in Haskell (although I've used Clean and Miranda before). Did I do something wrong??
The module containing the main function has to be called Main. Regards, Martin -- Martin Norbäck d95mback@dtek.chalmers.se Kapplandsgatan 40 +46 (0)708 26 33 60 S-414 78 GÖTEBORG http://www.dtek.chalmers.se/~d95mback/ SWEDEN OpenPGP ID: 3FA8580B