[mercury-users] [newbie] compilation error

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Jan 24 12:18:45 AEDT 2003


On 23-Jan-2003, Scott Finnie <scott.finnie at logiquence.com> wrote:
> Trying to run the hello_world sample from the tutorial, and getting 
> errors (see below).  Any pointers appreciated.  Platform is cygwin on 
> win2k.  Have tried adding ..../mercury/inc to $INCLUDE with same result.

It looks like you are for some reason using a different C compiler
than GNU C.  Why?  Is this deliberate?

If so, you need to follow the directions in the "Using a different C
compiler" chapter of the Mercury User's Guide.  In particular, you
need to use a grade which does not require GNU C extensions,
such as `none.gc' or `hlc.gc'.  Also, it is possible that additional
steps may be required; see the README.MS-VisualC file for some
documentation.  See also
http://www.cs.mu.oz.au/research/mercury/mailing-lists/mercury-developers/m
<ercury-developers.0211/0021.html>.

If it is not deliberate, then make sure that you have gcc installed
and in your PATH.

I recommend using GNU C!

Cheers,
	Fergus.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list