[mercury-users] csharp grade error in mdb.browse.cs

Peter Wang novalazy at gmail.com
Mon Nov 29 11:27:46 AEDT 2010


On 2010-11-27, Jeff Thompson <jeff at thefirst.org> wrote:
> I was able to build top_level.exe.  When I try to compile a .m file
> I get the following errors. The file builtin.int is there in the
> subdirectory Mercury/ints.  Do I need to add something so that
> mercury_compile can find it?
> mercury_compile: cannot find `builtin.int' in directories .
> mercury_compile: cannot find `io.int' in directories .
> mercury_compile: cannot find `private_builtin.int' in directories .

Yes, --use-subdirs, which is implied by mmc --make.  You have to use
mmc --make if targetting C#, as `mmc -s csharp foo' will still assume
you are trying to link a C program (a low priority bug).

You can use top_level.exe with an existing Mercury installation by
overriding the MERCURY_COMPILER environment variable in the mmc script.
Override it with a shell script that calls: mono /path/to/top_level.exe "$@"

Peter

P.S. I committed a fix for the name being the same as the enclosing class.
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list