[mercury-users] Math Module

Ralph Becket rafe at cs.mu.OZ.AU
Tue Oct 22 16:57:14 AEST 2002


Noel  Pinto, Tuesday, 22 October 2002:
> 
> when I add -E I get a message different from that which is 
> mentioned I have compiler 0.10.1 The command and the message are 
> as below...
> 
> $ mmake -E ceil_floor
> make: invalid option -- E

Because here you are passing an option to *mmake* and not *mmc*.

In Users' Guide,
under "Using Mmake",
we see
 | MCFLAGS and EXTRA_MCFLAGS
 |    Options to pass to the Mercury compiler. (Note that compilation model
 |    options should be specified in GRADEFLAGS, not in MCFLAGS.)

then under "Invocation",
we see

 | mmc is invoked as
 |    mmc [options] arguments

then a little later under the subsection "Verbosity options",
we see
 | -E
 | --verbose-error-messages
 |    Explain error messages. Asks the compiler to give you a more detailed
 |    explanation of any errors it finds in your program.

hence you can either use `mmc -E ...' or you can add the following line
to your Mmakefile

	EXTRA_MCFLAGS = -E

and use `mmake'.

- Ralph
--------------------------------------------------------------------------
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