INFORMIX
Informix-ESQL/C Programmer's Manual
Chapter 13: Using Informix Libraries
Home Contents Index Master Index New Book

In This Chapter

Informix products use the Informix general libraries for interactions between the client SQL application programming interface (API) products (INFORMIX-ESQL/C and INFORMIX-ESQL/COBOL) and the database server. You can choose between the following types of Informix general libraries to link with your ESQL/C application:

    To link a static library, the linker copies the library functions to the executable of your ESQL/C program. The static Informix general libraries allow an ESQL/C program on computers that do not support shared memory to access the Informix general library functions.

    To link a shared library, the linker copies information about the location of the library to the executable of your ESQL/C program. The shared Informix libraries allow several applications to share a single copy of these libraries, which the operating system loads, just once, into shared memory.

    The thread-safe versions of Informix general libraries allow an ESQL/C application that has several threads to call these library functions simultaneously. The thread-safe versions of Informix libraries are available as both static libraries and shared libraries.

UNIX
Static versions of Informix general libraries are available only with ESQL/C on UNIX platforms. The
Figure 13-1 shows the available options.

Figure 13-1
Different Version of the ESQL/C General Library Available for UNIX

Thread-Safe Options
Linking Options Thread-safe Default

Static

Static, thread-safe general libraries

Static, default general libraries

Shared

Shared, thread-safe general libraries

Shared, default general libraries.

This chapter describes how to link the static, shared, and thread-safe Informix general libraries with your ESQL/C application.

WIN NT/95
For Windows environments, ESQL/C provides only one version of the Informix general libraries. These libraries are implemented as thread-safe dynamic link libraries (DLL)s. When you compile an ESQL/C program, the esql command processor automatically links these DLLs into your ESQL/C application.

Tip: A Windows environment DLL is a shared library. Windows environments do not support static libraries. Therefore, in Windows environments the esql command processor does not support the -static command-line option of esql. The option is available in the Version 9.1 and later UNIX versions of ESQL/C.




Informix-ESQL/C Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.