Re: glib-config 1.2 vs 2.0



On Sun, 2004-01-04 at 02:12, Jeff Abrahamson wrote:
> I have both glib1.2 and glib2.0 installed (debian sarge).
> 
> The normal makefile line (in 1.2) is something like
> 
>     CFLAGS=`glib-config --cflags` ...
> 
> and so forth.
> 
> But for all my googling and doc reading, I don't see how to specify
> that I want glib 2.0 instead of glib 1.2 for my app.

Use pkg-config rather than glib-config.  You want something like this:

pkg-config --cflags glib-2.0

to get the flags you need.



> 
> Does anyone see what I'm missing?
> 
> Thanks much.




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