[mercury-users] mmc --make and MLLIBS

Peter Ross pro at missioncriticalit.com
Fri Dec 1 16:24:52 AEDT 2006


Hi,

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 can fix that problem by commenting out the MLLIBS variable.

I add MLLIBS=-lexpat
% Creating initialization file...
% Invoking system command `mkinit -g asm_fast.gc      -o
Mercury\cs\generic_xml_init.c.tmp -I
c:\cygwin\usr\local\mercury-rotd-2006-11-30-mingw\lib\mercury\modules
c:\cygwin\usr\local\mercury-rotd-2006-11-30-mingw\lib\mercury\modules\mer_rt.init
c:\cygwin\usr\local\mercury-rotd-2006-11-30-mingw\lib\mercury\modules\mer_std.init
Mercury\cs\generic_xml.c Mercury\cs\mexpat.c
Mercury\cs\mexpat.xml.c'...
% done.
% Updating interface:
% Mercury\cs\generic_xml_init.c' has not changed.
Making generic_xml.exe
% Linking...
% Invoking system command `gcc -mno-cygwin  -s     -o generic_xml.exe
Mercury\os\generic_xml_init.o Mercury\os\generic_xml.o
Mercury\os\mexpat.o Mercury\os\mexpat.xml.o
-Lc:\cygwin\usr\local\mercury-rotd-2006-11-30-mingw\lib\mercury\lib
-Lc:\cygwin\usr\local\mercury-rotd-2006-11-30-mingw\lib\mercury\lib\asm_fast.gc
    -lexpat  c:\cygwin\usr\local\mercury-rotd-2006-11-30-mingw\lib\mercury\lib\asm_fast.gc\libmer_std.a
c:\cygwin\usr\local\mercury-rotd-2006-11-30-mingw\lib\mercury\lib\asm_fast.gc\libmer_rt.a
c:\cygwin\usr\local\mercury-rotd-2006-11-30-mingw\lib\mercury\lib\libgc.a
  '...
c:\msys\1.0\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
cannot find -lexpat
collect2: ld returned 1 exit status
% done.
** Error making `generic_xml.exe'.

You can see the location of -lexpat in the command.

I then change back to MLLIBS=libexpat.lib and it does't appear where
-lexpat is in the command.
--------------------------------------------------------------------------
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