
Hi, I'm new to Haskell, let alone NHC. I'm James, a 2nd year Software Engineering student at Griffith University of Australia (www.griffith.edu.au) I have a few problems compiling, there are more errors than will fit on my terminal. I have attached the following files if anyone would like to assist me in where I've gone wrong. cheers James -- - -Zero Defect Software Engineers Group - ZDSEG - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and shouldn't, use the tape.

James Mills
In file included from longlong.h:75, from mpz_div.c:25: asmlong.h:3:12: missing terminating " character asmlong.h:7:40: missing terminating " character .... etc
I would guess that your machine probably has a very recent gcc compiler version >= 3.3 maybe? I believe the latest versions have significantly changed the behaviour of the cpp pre-processor, such that string constants in cpp macros are no longer permitted to contain literal newline characters. It is likely that all of the error messages you see are a consequence, direct or indirect, of this change. I'm not yet sure what the best fix would be. I will look into it, but in the meantime, if you have the opportunity to use an older version of gcc (3.2 or earlier), try that instead. Regards, Malcolm

In file included from longlong.h:75, from mpz_div.c:25: asmlong.h:3:12: missing terminating " character asmlong.h:7:40: missing terminating " character .... etc
I would guess that your machine probably has a very recent gcc compiler version >= 3.3 maybe?
Attached is the new file "asmlong.h", which replaces the version distributed with nhc98 in the directory src/runtime/Integer. If you drop it into place and re-start the build, everything should now go smoothly. Regards, Malcolm
participants (2)
-
James Mills
-
Malcolm Wallace