users-prolog
[Top][All Lists]
Advanced

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

Re: gplc - suggestion for small improvement (pkg-config support)


From: Daniel Diaz
Subject: Re: gplc - suggestion for small improvement (pkg-config support)
Date: Wed, 27 Jun 2012 14:58:53 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

Hello,

With -L you can pass several options at the same time (beware to shell delimitors).

E.g. use gplc -L  "`pkg-config --libs SDL`" examp.pl examp_c.o

Daniel

Le 23/06/2012 14:18, dmaugis a écrit :
gprolog gplc is really really nice but it's a little bit difficult to use it
with common C
development packages because the command line option makes it difficult to
use with pkg-config.
(pkg-config is a widespread utility which returns the flags necessary for
gcc to compile / use development libraries)

I would like to be able to use:

gplc `pkg-config --flags --libs SDL` examp.pl examp_c.o

instead of having to, manually list all the options necessary:

gplc -L -lSDL -L -lpthread  examp.pl examp_c.c

(well this example has only 2 libs, but if we interface gprolog with ...say
gtk, could be a few 100..)

--
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.




reply via email to

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