confusing CFLAGS example in manual

Tollef Fog Heen tfheen at
Sun Jun 20 02:48:34 PDT 2010

]] Peter Johansson 

| Hi,
| In the example of a .pc file in the manual here
| I noticed the line
| Cflags: -I${includedir}/foo
| which is a bit unexpected. Shouldn't it be
| Cflags: -I${includedir}
| If I install header files in ${includedir}/foo I expect users to
| include the header as
| #include <foo/bar.h>

Well, that depends on whether you want

#include <foo/bar.h>


#include <bar.h>

to work.  For the former, you want -I${includedir}, for the latter


| Am I missing somethings?


Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are

More information about the pkg-config mailing list