[m-users.] Installed library not found

Julien Fischer jfischer at opturion.com
Tue Sep 13 21:34:29 AEST 2022



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.

Julien.


More information about the users mailing list