I tried:
/usr/doc/gprolog-1.5.0/examples/ExamplesPl$ gplc --fast-math
--min-bips -o boyer boyer.pl -L /usr/lib64
and
/usr/doc/gprolog-1.5.0/examples/ExamplesPl$ gplc --fast-math
--min-bips -o boyer boyer.pl -L /usr/lib64/
and it still complains:
"cannot
locate file libbips_fd.a"
The contents of
that directory:
ls -l
/usr/lib64/libbi*.a
-rw-r--r-- 1 root root 422490 Apr 26 20:34
/usr/lib64/libbips_fd.a
-rw-r--r-- 1 root root 1756350 Apr 26 20:34
/usr/lib64/libbips_pl.a
Regards.
Louis
On 28/04/2022 19:16, Sean Charles
(emacstheviking) wrote:
Try here:
section
4.4.3 using the compiler, Linker Options
gplc
--fast-math --min-bips -o boyer boyer.pl -L /path/to/lib
It's
been a while but I think I linked SDL2 like that,
actually, here's a link to the code:
Here's how I built my
executable...
gplc \
-C -I/Library/Frameworks/SDL2.framework/Headers \
-C -I/Library/Frameworks/SDL2_ttf.framework/Headers \
-C -I/Library/Frameworks/SDL2_mixer.framework/Headers \
-C -I/Library/Frameworks/SDL2_image.framework/Headers \
-L -framework SDL2 -L -framework SDL2_ttf -L -framework \
SDL2_image -L -framework SDL2_mixer -o sdltest \
sdl-ffi.pl sdl.pl sdl_lib.c sdl_thread.c sdl_ttf.c sdl_mixer.c
Hope that helps, GNU Prolog is a sweet
little thing!
:D
Sean
I decided to try the examples that comes with
the source, but I get stuck:
gplc
--fast-math --min-bips -o boyer boyer.pl
cannot locate file libbips_fd.a
How do one ensure that the compiler find the
libraries? I have them in /usr/lib64. I can't find a
setting to tell the compiler where to look.
Regards.
Louis.