Newbie question

Monique Louise <[email protected]> Sat, 27 Aug 2005 17:01:39 -0300
Newsgroups gmane.comp.lang.haskell.nhc.user
Message-ID <[email protected]>
Hi all,

  I'm a newbie to nhc and I'm trying to compile a simple "hello world" prog=
ram:

module Main where

main =3D putStr "hello world"

with nhc98 hello.hs or nhc98 hello.hs -o hello.exe

  but the following messages appera:

C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/main.o(.text+0xa2):main.c:=
 unde
fined reference to `setjmp'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/main.o(.text+0xdd):main.c:=
 unde
fined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/main.o(.text+0x12a):main.c=
: und
efined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/mutator.o(.text+0x2d2):mut=
ator.
c: undefined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/mutator.o(.text+0x425):mut=
ator.
c: undefined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/mutator.o(.text+0x44d):mut=
ator.
c: undefined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/mutator.o(.text+0x2ac9):mu=
tator
.c: more undefined references to `_impure_ptr' follow
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(haskellInit.o)(.=
text+
0x94):haskellInit.c: undefined reference to `_imp___ctype_'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(haskellInit.o)(.=
text+
0x180):haskellInit.c: undefined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(haskellInit.o)(.=
text+
0x504):haskellInit.c: undefined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(haskellInit.o)(.=
text+
0x757):haskellInit.c: undefined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(haskellInit.o)(.=
text+
0x771):haskellInit.c: undefined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(haskellInit.o)(.=
text+
0x7ca):haskellInit.c: undefined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(haskellInit.o)(.=
text+
0x93f):haskellInit.c: more undefined references to `_impure_ptr' follow
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(cIOExtras.o)(.te=
xt+0x
d7):cIOExtras.c: undefined reference to `__errno'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(mark.o)(.text+0x=
498):
mark.c: undefined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(mark.o)(.text+0x=
568):
mark.c: undefined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(mark.o)(.text+0x=
6f8):
mark.c: undefined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(mark.o)(.text+0x=
90a):
mark.c: undefined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(timeUnix.o)(.tex=
t+0x4
3):timeUnix.c: undefined reference to `times'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(timeUnix.o)(.tex=
t+0x6
5):timeUnix.c: undefined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(timeUnix.o)(.tex=
t+0xb
3):timeUnix.c: undefined reference to `times'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(timeUnix.o)(.tex=
t+0xd
2):timeUnix.c: undefined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(timeUnix.o)(.tex=
t+0x1
13):timeUnix.c: undefined reference to `times'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(timeUnix.o)(.tex=
t+0x1
32):timeUnix.c: undefined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(stableptr.o)(.te=
xt+0x
199):stableptr.c: undefined reference to `_impure_ptr'
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(stableptr.o)(.te=
xt+0x
33a):stableptr.c: undefined reference to `_impure_ptr'

I'm running version 1.16 at Windows XP with Cygwin.

Does anyone have any idea about what is happening?

Thanks in advance,

Monique