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.
ecobpg testproc.pco
Specify the following options when compiling a COBOL application output with precompiling.
Option | How to specify the option |
---|---|
Path of the include file | -I/symfowareServerClientInstallDir/include |
Path of the library | -L/symfowareServerClientInstallDir/lib |
Type of library | Library name |
---|---|
Dynamic library | libecpg.so |
Static library | libecpg.a |
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.
Option | How to specify the option |
---|---|
Path of the include file | SymfowareServerClientInstallDir\include |
Path of the library | SymfowareServerClientInstallDir\lib |
Type of library | Library name |
---|---|
Library for links | libecpg.lib |
Dynamic library | libecpg.dll |