users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gplc libraries not found


From: Sean Charles (emacstheviking)
Subject: Re: gplc libraries not found
Date: Thu, 28 Apr 2022 18:16:55 +0100

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





On 28 Apr 2022, at 18:10, Louis LSJ Krüger <zr6abc@gmail.com> wrote:

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]