[m-users.] Compiling on Windows 10 with Mercury 14.01 (Visual Studio 2013 32bit)

hao ramirez haoramirez at gmail.com
Tue Mar 29 07:29:39 AEDT 2016


Hello!

First time posting here, really interested in learning about Mercury but
absolutely clueless as to getting it setup on Windows 10.

First of all, is there a good tutorial for setting Mercury up on Windows
7-10 I could look at? I can't seem to find anything to help with the
missing directories problem I am currently having.

Secondly, how exactly would I compile this hello world example
<https://www.rosettacode.org/wiki/Hello_world/Text#Mercury>, if saved as
hello.m?

Right now I am trying to compile it via:

> C:\mercury-14.01-vs2013\bin\mercury_compile.exe hello.m
> mercury_compile.exe: cannot find `builtin.int' in directories .
> mercury_compile.exe: cannot find `io.int' in directories .
> mercury_compile.exe: cannot find `private_builtin.int' in directories .
> hello.m:001: In module `hello':
> hello.m:001:   warning: module `io' is imported in the interface, but is
> not
> hello.m:001:   used in the interface.
> hello.m:004: In definition of predicate `hello.main'/2:
> hello.m:004:   error: undefined mode `di'/0.
> hello.m:004: In definition of predicate `hello.main'/2:
> hello.m:004:   error: undefined mode `uo'/0.
> hello.m:004: In definition of predicate `hello.main'/2:
> hello.m:004:   error: undefined type `io'/0.
>
And I have "C:\mercury-14.01-vs2013\bin" in my Environment Variables.

Thank you for your time and patience reading this!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/users/attachments/20160328/9362eea4/attachment.html>


More information about the users mailing list