[Top][All Lists]

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

Re: printing library version

From: Tor Lillqvist
Subject: Re: printing library version
Date: Wed, 20 May 2009 11:32:07 +0300

> if I want to print the library version from a program

> is it correct to print 2:0:1 or 1.1.0?

What exactly do you mean with "library version" ? Note that neither
the libtool triple current:revision:age nor the Linux-style suffix it
causes to be appended after the ".so" correspond to the actual version
number for most libraries.

Isn't it simplest to just pass a -DMYLIB_VERSION="a.b.c.d"  when
compiling and then have a function

const char *

or something like that?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]