[m-users.] Installed library not found

Volker Wysk post at volker-wysk.de
Tue Sep 13 21:53:55 AEST 2022


Am Dienstag, dem 13.09.2022 um 21:34 +1000 schrieb Julien Fischer:
> 
> On Tue, 13 Sep 2022, Volker Wysk wrote:
> 
> > What would be the right/official/supported way to install the library, such
> > that it will be found at run time? Is it a Mercury bug or have I not 
> > properly installed the lib?
> > 
> > I've compiled the program with:
> > 
> > mmc -j8 -E --make --parallel \
> >    --output-compile-error-lines=200 \
> >    -lposix \
> >    --grade asm_fast.par.gc.stseg \
> >    --mercury-linkage static \
> >    --cflags "$(pkg-config --cflags glib-2.0)" \
> >    `pkg-config --libs glib-2.0` \
> >    "$1"
> 
> Those are not the correct command line options to compile against an
> installed Mercury library; you need to use the --ml and --mld options.
> See the section "Using install libraries with mmc --make" in the Users's
> Guide.

That's it. It works with "--ml" instead of "-l". I'm wondering why it worked
before... Thanks!

Volker


More information about the users mailing list