Re: how to get a gnome library version with code?
- From: Andrew Sobala <aes gnome org>
- To: Carlos Eduardo Rodrigues Diógenes <cerdiogenes yahoo com br>
- Cc: Neo Liu <Neo Liu Sun COM>, Josselin Mouette <joss debian org>, desktop-devel-list gnome org
- Subject: Re: how to get a gnome library version with code?
- Date: Sat, 03 Mar 2007 16:19:52 +0000
Carlos Eduardo Rodrigues Diógenes wrote:
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.
No, that's different. That's "What version of GTK+ would I get CFLAGS
for and link to if I ran pkg-config --cflags and pkg-config --libs at
this moment in time" (from the .pc metafiles), not "What version of GTK+
am I currently linked to." It fails most obviously in a parallel install
or statically linked app.
--
Andrew
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]