From 9df49634f11f561ad9b5669124a4f2bd7179a559 Mon Sep 17 00:00:00 2001
From: root
You can find out the major and minor version numbers of the library +
You can find out the major and minor API/ABI version numbers of the library
you linked against by calling the functions ev_version_major
and
ev_version_minor
. If you want, you can compare against the global
symbols EV_VERSION_MAJOR
and EV_VERSION_MINOR
, which specify the
version of the library your program was compiled against.
These version numbers refer to the API and ABI version of the library, not +the release version.
Usually, it's a good idea to terminate if the major versions mismatch, -as this indicates an incompatible change. Minor versions are usually +as this indicates an incompatible change. Minor versions are usually compatible to older versions, so a larger minor version alone is usually not a problem.
Example: Make sure we haven't accidentally been linked against the wrong -- cgit v1.2.3