Next: , Previous: Linking with the Library, Up: Introduction


1.11 Getting the Version of the Library

Currently, the version of the QSMM library is specified in major.minor format. In the future, versions with greater major number may require considerable backward-incompatible changes at source code level for programs that use the library.

To get a string representation of the version, the following API function from the qsmm.h header can be used.

— Function: const char * qsmm_version ()

This function returns the version of the QSMM library as a string in major.minor format, e.g. ‘1.16’.

To examine the version of QSMM library headers, which were used when compiling a program, the following macro from the version.h header included by the preprocessor #include directive in the qsmm.h header can be used.

— Macro: QSMM_HEADERS_VERSION

This macro is defined to a string representation of the version of QSMM library headers installed, e.g. ‘1.16’, which normally should be equal to the version of a QSMM library used when linking the program.