libgen
Contains functions for general tasks
libos
Contains functions for tasks that are required from the operating system
libsql
Contains functions that send SQL statements between client application and database server
libgls
Contains functions that provide Global Language Support (GLS) to Informix products
libasf
Contains functions that handle communication protocols between client application and database server
Informix general libraries reside in the $INFORMIXDIR/lib/esql and $INFORMIXDIR/lib directories on UNIX operating systems.
The esql Command To determine which type of Informix general libraries to link with your ESQL/C application, the esql command supports the command-line options in Figure 13-2.
Figure 13-2 esql Command-Line Options for Informix General Libraries Version of InformixLibraries to Link esql Command-Line Option Reference and Comments Shared libraries No option (default) "Linking Shared Informix General Libraries" Static libraries -static UNIX "Linking Static Informix General Libraries". This option available for UNIX operating systems only. Thread-safe shared libraries -thread UNIX "Linking Thread-Safe Informix General Libraries to an ESQL/C Module on a UNIX Operating System" and "Linking Thread-Safe Informix General Libraries to an ESQL/C Module in a Windows Environment" Thread-safe static libraries -thread -static UNIX "Creating a Dynamic Thread Library on UNIX Operating Systems" For the complete syntax of the esql command, see "Using the esql Command".
Shared libraries
No option (default)
"Linking Shared Informix General Libraries"
Static libraries
-static
"Linking Static Informix General Libraries". This option available for UNIX operating systems only.
Thread-safe shared libraries
-thread
"Linking Thread-Safe Informix General Libraries to an ESQL/C Module on a UNIX Operating System"
Thread-safe static libraries
-thread -static
"Creating a Dynamic Thread Library on UNIX Operating Systems"
Figure 13-3 Format of an Informix Shared-Library Name
The following sample output shows the symbolic and actual names for the libos.a static library and the libos.so shared library (on a Sun platform):
On many UNIX operating systems, the LD_LIBRARY_PATH environment variable specifies the library search path. The following command sets LD_LIBRARY_PATH in a C shell:
2. Compile your program with the esql command.