[m-users.] Mercury mmc --make error

Julien Fischer jfischer at opturion.com
Tue Oct 7 19:29:42 AEDT 2014


Hi,

On Tue, 7 Oct 2014, Roger Qiu wrote:

> Ok I launched cmd from the desktop shortcut, and this is what I get:
> 
> C:\Users\CMCDragonkai\Projects\Language-Learning\mercury\examples>mercury -m hello
> Making Mercury\int3s\hello.int3
> Making Mercury\ints\hello.int
> Making Mercury\cs\hello.c
> Making Mercury\os\hello.o
> In file included from C:\mercury-14.01-mingw\lib\mercury\inc/mercury_imp.h:45:0,
>
>                  from Mercury\cs\hello.c:24:
> C:\mercury-14.01-mingw\lib\mercury\inc/mercury_std.h:23:37: fatal error: stdlib.
> h: No such file or directory
> compilation terminated.
> Error: system command received signal 1.
> ** Error making `Mercury\os\hello.o'.
> 
> C:\Users\CMCDragonkai\Projects\Language-Learning\mercury\examples>mmc --make hello
> Making Mercury\int3s\hello.int3
> Making Mercury\ints\hello.int
> Making Mercury\cs\hello.c
> Making Mercury\os\hello.o
> In file included from C:\mercury-14.01-mingw\lib\mercury\inc/mercury_imp.h:45:0,
>
>                  from Mercury\cs\hello.c:24:
> C:\mercury-14.01-mingw\lib\mercury\inc/mercury_std.h:23:37: fatal error: stdlib.
> h: No such file or directory
> compilation terminated.
> Error: system command received signal 1.
> ** Error making `Mercury\os\hello.o'.
> 
> Something to do with no such file or directory in stdlib?

The C compiler cannot find the header file stdlib.h for some reason.
(If you invoke the Mercury compiler with the option --verbose-commands
you can see what it's trying to do.)

The Windows packages for Mercury include the MinGW GCC; do you also have
another installation of it on your system?

Cheers,
Julien.



More information about the users mailing list