Libraries

There is an installation procedure that installs libraries for UNIX and Windows.

UNIX

The installation procedure installs the following libraries into INFORMIXDIR/lib/cli. In each data source specification section in the odbc.ini file, set the driver value indicating the full path to one of the following library file names.
libifcli.a or libcli.a
Static version for single (nonthreaded) library
libifcli.so or iclis09b.so
Shared version for single (nonthreaded) library
libthcli.a
Static version for multithreaded library
libthcli.so or iclit09b.so
Shared version for multithreaded library
libifdrm.so or idmrs09a.so
Shared library for DMR (thread safe)

If you do not use a driver manager, your application needs to link to either the static or the shared version of the Informix® ODBC Driver libraries.

The following compile command links an application to the thread-safe version of the Informix® ODBC Driver libraries:
cc ... -L$INFORMIXDIR/lib/cli -lifdmr - lthcli

Windows

The installation procedure installs the following libraries into INFORMIXDIR\lib.

iclit09b.lib
Enables linking directly to the driver without the use of a driver manager
iregt07b.lib
Allows linking directly to iregt07b.dll
The following compile command links an application to the thread-safe version of the Informix® ODBC Driver libraries:
cl ... -L$INFORMIXDIR/lib/cli iclit09b.lib
If you use a driver manager, you must link your application to the driver manager library only, as the following example shows:
cl odbc32.lib