[mercury-users] Simple program
Julien Fischer
juliensf at csse.unimelb.edu.au
Tue Sep 20 01:36:32 AEST 2011
Hi,
On Mon, 19 Sep 2011, Denis Kononenko wrote:
> Hello!
> Please help me
>
> ------------------------------------------------
> :- module learn2.
> :- interface.
> :- import_module io.
>
> :- pred main(io::di, io::uo) is det.
>
> :- implementation.
> :- import_module list.
>
> main(!IO) :- io.write_list([1], "\n", io.write_int, !IO).
> ------------------------------------------------
> bash-3.2$ mmc --make learn2
> Making Mercury/int3s/learn2.int3
> Making Mercury/ints/learn2.int
> Making Mercury/cs/learn2.c
> Making Mercury/os/learn2.o
> learn2.m:26: error: initializer element is not constant
> learn2.m:26: error: (near initialization for learn2_scalar_common_1[0][1])
> ** Error making `Mercury/os/learn2.o'.
Can you please try compiling it again as follows:
$ mmc --verbose-commands --make learn2
and post the output.
It looks as though your installation is misconfigured in some way, but
there isn't enough information above to say how.
Julien.
--------------------------------------------------------------------------
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