INGRES
SQL
SLIDE #8 Compiling the C++ program with Embedded SQL
****************************************************************
* 8: COMPILING THE C++ PROGRAM WITH EMBEDDED SQL *
****************************************************************
a. Save the previous program in a file called, for example:
example2.qc
b. Prepare a command file with the following statements:
esqlc $1.qc
g++ -w $1.c /ingres/lib/libingres.a -lm -lc
c. Save the previous command program in a file called, for example:
link2
d. Make the file, link2, executable, by typing:
chmod 700 link2
e. Compile your program, by typing:
link2 example2
The result is an object file, stored under the name a.out
f. Execute your program by typing:
a.out