[mercury-users] mmc --make and MLLIBS

Simon Taylor staylr at gmail.com
Fri Dec 1 23:36:15 AEDT 2006


On 01-Dec-2006, Peter Ross <pro at missioncriticalit.com> wrote:
> I have the following line in my Mercury.options file
>
> MLLIBS=libexpat.lib
>
> and then call mmc --make
>
> Making Mercury\int3s\generic_xml.int3
> Making Mercury\int3s\mexpat.int3
> Making Mercury\int3s\mexpat.xml.int3
> Making Mercury\ints\mexpat.int
> Making Mercury\int0s\mexpat.int0
> Making Mercury\ints\mexpat.xml.int
> Making Mercury\cs\generic_xml.c
> mercury_compile.exe: can't find source for module `libexpat.lib'.
> Error: system command received signal 1.
> ** Error making `Mercury\cs\generic_xml.c'.

I think you want "MLOBJS=libexpat.lib"
(or "MCFLAGS += --link-object libexpat.lib").
MLLIBS is documented in the user guide as being a list of `-l' options.
The value of MLLIBS is currently passed on to mmc without checking,
which is why libexpat.lib is incorrectly treated as a source module.

Simon.

(Sorry if this goes through twice, I think csse.unimelb.edu.au
doesn't like gmail).
--------------------------------------------------------------------------
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