lballabio / quantlib-old

The QuantLib C++ library and extensions (warning: out of date)
http://quantlib.org
471 stars 405 forks source link

How can I check the version number of an installed QuantLib? #349

Closed jwg4 closed 9 years ago

jwg4 commented 9 years ago

We are often building and installing different versions of QuantLib and sometimes forget what should be on which machine etc.

How can I get the QuantLib version from a QuantLib.so shared object? Either by writing some C/C++ or using some tool to examine the binary is completely fine to me.

wegamekinglc commented 9 years ago

Hi @jwg4. quantlib version number is coded under the root folder quantlib/version.hpp. You can easily write a free function to expose it in your .so file.

jwg4 commented 9 years ago

Thank you @wegamekinglc This looks like a solution for us, I am trying it out now.

jwg4 commented 9 years ago

This worked perfectly, thank you very much.