Check the API version of a library
When you invoke the application that is linked with shared HCL OneDB™ general libraries, the release number of these shared libraries must be compatible with that of the shared libraries in the $ONEDB_HOME/lib or the %ONEDB_HOME%\lib directory.
In a Windows™ environment, a developer can easily verify the name of the shared library DLL, namely isqltnnx.dll, where nn stand for the version number, and x stand for the API version.
For the application on UNIX™, however, given that the linked libraries get symbolic names, it is not easy to find the version number of the linked library. Therefore, does this check for you. performs an internal check between the API version of the library that the application uses and the API version of the library that is installed as part of your product. Format of the HCL OneDB shared-library name shows where the API version appears in the shared library name.
uses the HCL OneDB function that is called checkapi() to perform this check. The checkapi() function is in the checkapi.o object file, which is contained in the $ONEDB_HOME/lib/esql directory. The esql command automatically links this checkapi.o object file with every executable that it creates.
#define CLIENT_GEN_VER 710
#define CLIENT_OS_VER 710
#define CLIENT_SQLI_VER 710
#define CLIENT_GLS_VER 710
If the API version of the libraries in this executable file is not compatible, returns a runtime error that indicates which library is not compatible. You must recompile your application to link the new release version of the shared library.
undefined ifx_checkAPI()