[nhc-users] Newbie Problem

Dufflebunk dufflebunk@dufflebunk.homeip.net
12 Jun 2002 12:50:40 -0400


--=-LsFmcIgvjjSwme6Z/wGg
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Doh! Thanks, that's it. :)

On Wed, 2002-06-12 at 12:50, Martin Norb=E4ck wrote:
> ons 2002-06-12 klockan 18.41 skrev Dufflebunk:
> > Hello, I'm not subscribed to this list, so please make sure you CC to m=
e
> > if you reply.
> > I just installed nhc98 (from source) and tried to compile a simple
> > program:
> > 	module Test where
> > 	main =3D return ()
> > Here is the result:
> > $ nhc98 test.hs=20
> > /usr/lib/nhc98/ix86-Linux/Prelude.a(_Driver.o)(.data+0x88): undefined
> > reference to `CF_Main_46main'
> > collect2: ld returned 1 exit status
> > $
> >=20
> > 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??
>=20
> The module containing the main function has to be called Main.
>=20
> Regards,
>=20
> 	Martin
>=20
> --=20
> Martin Norb=E4ck          d95mback@dtek.chalmers.se             =20
> Kapplandsgatan 40       +46 (0)708 26 33 60                   =20
> S-414 78  G=D6TEBORG      http://www.dtek.chalmers.se/~d95mback/
> SWEDEN                  OpenPGP ID: 3FA8580B
--=20

-----------------
PGP public key at
http://wwwkeys.pgp.net:11371/pks/lookup?op=3Dget&search=3D0x92B5D3F1

--=-LsFmcIgvjjSwme6Z/wGg
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA9B3vg1iFjljMnqaURAohZAJ0ZfG9FZs4rEz8VW5anAHSgOzaWkQCeLVQQ
43dUYOCTWFr664vFSljJmLA=
=HWEG
-----END PGP SIGNATURE-----

--=-LsFmcIgvjjSwme6Z/wGg--