Top
Symfoware Server V12.0.0 Application Development Guide
FUJITSU Software

6.4.2 Compiling Applications

C source is created by precompiling the embedded SQL in C source file with the ecpg command.

Note

Take the following points into account when using embedded SQL source files:

  • Multibyte codes expressed in SJIS or UTF-16 cannot be included in statements or host variable declarations specified in EXEC SQL.

  • Do not use UTF-8 with a byte order mark (BOM), because an error may occur during compilation if the BOM character is incorrectly recognized as the source code.

  • Multibyte characters cannot be used in host variable names.

  • It is not possible to use a TYPE name that contains multibyte characters, even though it can be defined.

Compile the C source with a C compiler.

Precompiling example

ecpg testproc.pgc

Point

C source with the extension .c is created by precompiling source with the extension .pgc.

Specify the following options when compiling a C application output with precompiling.