Top
Symfoware Server V12.1.0 Application Development Guide
FUJITSU Software

7.4.1 Compiling Applications

Append the extension "pco" to the name of the source file for the embedded SQL in C.

When the pco file is precompiled using the ecobpg command, COBOL source files will be created, so use the COBOL compiler for the compile.

Precompiling example

ecobpg testproc.pco

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

LinuxLinux
LinuxTable 7.1 Include file and library path

Option

How to specify the option

Path of the include file

-I/symfowareServerClientInstallDir/include

Path of the library

-L/symfowareServerClientInstallDir/lib

LinuxTable 7.2 COBOL Library

Type of library

Library name

Dynamic library

libecpg.so

Static library

libecpg.a

WindowsWindows(R)

If the include file and the library path have been set in the environment variable, there is no need to specify the options shown below for the compile.

WindowsTable 7.3 Include file and library path

Option

How to specify the option

Path of the include file

SymfowareServerClientInstallDir\include

Path of the library

SymfowareServerClientInstallDir\lib

WindowsTable 7.4 COBOL Library

Type of library

Library name

Library for links

libecpg.lib

Dynamic library

libecpg.dll