Re: how to get a gnome library version with code?



Le samedi 03 mars 2007 à 14:11 -0300, Carlos Eduardo Rodrigues Diógenes
a écrit :
> On Sat, 2007-03-03 at 16:57 +0100, Josselin Mouette wrote:
> > Le vendredi 02 mars 2007 à 14:24 +0800, Neo Liu a écrit :
> > > gurus,
> > > 
> > > how can I get a library version in code? is there a general way? and if 
> > > not, is there a way to get atk/at-spi library version?
> 
> I think that you can look at the pkg-config code, since if you type in
> your terminal:
> 
> pkg-config --modversion gtk+-2.0
> 
> you will get the gtk+ version.

This is only expected to work at build time, as at run time the .pc
files are not guaranteed to be installed.

Cheers,
-- 
 .''`.
: :' :      We are debian.org. Lower your prices, surrender your code.
`. `'       We will add your hardware and software distinctiveness to
  `-        our own. Resistance is futile.

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=



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