Installing and configuring ECPGPlus v15
On Windows, ECPGPlus is installed by the EDB Postgres Advanced Server installation wizard as part of the Database Server component. On Linux, you install ECPGPlus by running an executable.
Installing ECPGPlus
On Linux, install with the edb-as<xx>-server-devel
RPM package, where <xx>
is the EDB Postgres Advanced Server version number. On Linux, the executable is located in:
On Windows, the executable is located in:
When invoking the ECPGPlus compiler, the executable must be in your search path (%PATH%
on Windows, $PATH
on Linux). For example, the following commands set the search path to include the directory that holds the ECPGPlus executable file ecpg
.
On Windows:
On Linux:
Constructing a makefile
A makefile contains a set of instructions that tell the make utility how to transform a program written in C that contains embedded SQL into a C program. To try the examples, you need:
- A C compiler and linker
- The make utility
- ECPGPlus preprocessor and library
- A makefile that contains instructions for ECPGPlus
The following code is an example of a makefile for the samples included in this documentation. To use the sample code, save it in a file named makefile
in the directory that contains the source code file.