Re: gplc - suggestion for small improvement (pkg-config support)
Daniel Diaz <[email protected]>
| Newsgroups | gmane.comp.gnu.prolog.general |
|---|---|
| Message-ID | <[email protected]> |
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.