Home | Previous Page | Next Page   Environment Variables > Environment Variables >

INFORMIXC (UNIX)

The INFORMIXC environment variable specifies the filename or pathname of the C compiler to be used to compile files that IBM Informix ESQL/C generates. The setting takes effect only during the C compilation stage.

If INFORMIXC is not set, the default compiler on most systems is cc.

Tip:
On Windows, you pass either -mcc or -bcc options to the esql preprocessor to use either the Microsoft or Borland C compilers.

Read syntax diagramSkip visual syntax diagram>>-setenv--INFORMIXC--+-compiler-+-----------------------------><
                      '-pathname-'
 
compiler
is the filename of the C compiler.
pathname
is the full pathname of the C compiler.

For example, to specify the GNU C compiler, enter the following command:

setenv INFORMIXC gcc

Important:
If you use gcc, be aware that the database server assumes that strings are writable, so you need to compile using the -fwritable-strings option. Failure to do so can produce unpredictable results, possibly including core dumps.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]