Re: gplc libraries not found
"Sean Charles (emacstheviking)" <[email protected]> Thu, 28 Apr 2022 18:16:55 +0100
| Newsgroups | gmane.comp.gnu.prolog.general |
|---|---|
| Message-ID | <[email protected]> |
Try here: http://www.gprolog.org/manual/html_node/gprolog009.html <http://www.gprolog.org/manual/html_node/gprolog009.html> 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: https://github.com/emacstheviking/gnuprolog-libsdl2 <https://github.com/emacstheviking/gnuprolog-libsdl2> 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 <[email protected]> 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.