Re: Newbie question

Malcolm Wallace <[email protected]> Wed, 31 Aug 2005 09:56:55 +0100
Newsgroups gmane.comp.lang.haskell.nhc.user
Organization Dept of Computer Science, University of York
Message-ID <[email protected]>
Monique Louise <[email protected]> writes:

> C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/main.o(.text+0xa2):main.c:
> undefined reference to `setjmp'
> C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/main.o(.text+0xdd):main.c:
> undefined reference to `_impure_ptr'
> C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/Runtime.a(haskellInit.o)
> haskellInit.c: undefined reference to `_imp___ctype_'
  ...

> I'm running version 1.16 at Windows XP with Cygwin.
> Does anyone have any idea about what is happening?

It looks like there is a mismatch between the standard C library
that nhc98 was compiled against, and the C library that is available
on your machine.  I guess you downloaded the binary distribution of
nhc98 for Cygwin?  Maybe you could try building nhc98 directly on
your machine from sources.

Regards,
    Malcolm