> 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 *
mylib_get_version(void)
{
  return MYLIB_VERSION;
}

or something like that?

--tml


_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to