Implicit options invoked by the esql preprocessor in Windows™ environments
The Informix®
ESQL/C command
processor implicitly passes compiler and linker flags to the supported
C compilers. The following table lists the implicit options that esql passes
when you use the indicated esql options. If you
choose to create your own build file, use the indicated flags as appropriate
for your application.
Important: The esql command
does not implicitly pass any options to the resource compiler.
Compiler | Module type | esql options | Implicit options | |
---|---|---|---|---|
Compiler | Linker | |||
Microsoft™ Visual C++, Version 2.x or later | executable | -target:exe -we |
-c -I%INFORMIXDIR%\incl\esql/D_systype/D_proctype/threadtype/DWIN32 |
|
dll | -target:dll -wd |
-c -I%INFORMIXDIR%\incl\esql/D_systype/D_proctype/threadtype/DWIN32 |
|
|
Borland C++, Version 5 | executable | -target:exe -we |
-c -I%INFORMIXDIR%\ incl\esql-etarget-subtype-libtlog-libtlg |
|
dll | -target:dll -wd |
-c -I%INFORMIXDIR%\incl\esql-etarget-subtype-libtlog-libtlg |
|
The italicized terms in the compiler and linker options
represent the following definitions.
- deffile
- Name of a .def file (The -DEF option executes only if you specify a .def file on the command line.)
- libset
- Library set (depends on whether the application is WINDOWS or CONSOLE).
- libtlg
- -D_RTLDLL for a dynamic library or " " for a shared library
- libtlog
- -WM for a multithread library or " " for a single-thread library
- proctype
- Type of processor (X86)
- subsystem
- ap for a console subsystem or aa for a Windows™ subsystem
- subtype
- WC for an executable console, W for a Windows™ executable file, WCD for a console DLL, or WD for a Windows™ DLL
- systype
- Type of subsystem (WINDOWS or CONSOLE)
- t
- X for a console subsystem and W for a Windows™ subsystem
- target
- Name of the executable file (name of first .ec file or the name specified by the -o command-line option)
- threadtype
- Type of thread option (ML, MT, MD, depending on the value of the -runtime command-line option)
For more information about the -target, -wd, and -we command-line options, see Syntax of the esql command
The library set that the linker uses depends on whether
you are creating a Windows™ or
console application. The following table lists the library sets that
the indicated esql options use.
Compiler | Options for esql | Library sets that the linker uses |
---|---|---|
Microsoft™ Visual C++, Version 2.x or later |
|
|
|
|
|
Borland C++, Version 5 |
|
|
|
|