[nhc-users] Newbie Problem

Malcolm Wallace Malcolm.Wallace@cs.york.ac.uk
Wed, 12 Jun 2002 17:48:18 +0100


Dufflebunk <dufflebunk@dufflebunk.homeip.net> writes:

> 	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

The 'main' function must be in a module named 'Main', but your module is
named 'Test'.

Regards,
    Malcolm