Specify versions of Informix® ESQL/C general libraries

By default, the esql command links the shared libraries for the HCL Informix® general libraries: libgen, libos, libgls, libafs, and libsql. To use shared libraries, your computer must support shared memory.

You can use the following command-line options to change which versions of the Informix® general libraries the preprocessor links with your program:
  • The -thread option tells the preprocessor to link the thread-safe versions of the Informix® shared libraries.
  • The -static option tells the preprocessor to link the static libraries for the Informix® general libraries in a UNIX environment. If you use the -static option, you cannot set the IFX_LONGID environment variable. You must recompile with libos.a.

You can combine these options to tell the preprocessor to link in the thread-safe versions of the Informix® static libraries.