Building Application Lib

Antonio Ospite ao2 at ao2.it
Thu Feb 1 09:59:25 UTC 2018


On Wed, 31 Jan 2018 21:29:33 -0700 (MST)
HtGst <ht.techdev at gmail.com> wrote:

> Never mind `pkg-config --cflags --libs gstreamer-1.0` should be inserted
> prior to -o. (Go figure.)
> Cheers,
> 

As a general rule you should put the output of "pkg-config --cflags"
_before_ the linking objects, and the output of "pkg-config --libs"
_after_ them.

For instance GNU Make uses two different variables for that: LDFLAGS for
the former and LDLIBS for the latter, and uses a command like this:

  $(CC) $(LDFLAGS) n.o $(LOADLIBES) $(LDLIBS)

I guess this has to do with how 'ld' handles its arguments.

Ciao,
   Antonio

-- 
Antonio Ospite
https://ao2.it
https://twitter.com/ao2it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?


More information about the gstreamer-devel mailing list