Nested 'exec sql includes'
Date: Sun, 23 Jan 2000 11:18:11 -0500
Message-ID: <86f9jm$1tau_at_theusc.csd.sc.edu>
Hey all
I am having a serious conflict of interest with the proc*c compiler
The trouble I am having is that the proc compiler is not commenting out some
'exec sql includes'
when header files are getting nested. Here is a small sample of the
problem.
// -----------------------------
Header1-------------------------------------EXEC ORACLE IFNDEF _HEADER1_;
EXEC ORACLE DEFINE _HEADER1_;
// Sniped header for C++ class
// containing oracle declares in private section
EXEC ORACLE ENDIF;
// ----------------------------- End Header1--------------------------------
// -----------------------------
Header2 ------------------------------------
EXEC ORACLE IFNDEF _HEADER2_;
EXEC ORACLE DEFINE _HEADER2_;
EXEC SQL INCLUDE Header1
// Sniped header for C++ class
// containing oracle declares in private section
EXEC ORACLE ENDIF;
// ----------------------------- End Header2--------------------------------
Now if I 'exec sql include' Header2 in the driver program everthing is fine,
The problem only shows in less trivial includes situations.
When the class header files are being included and nested deeper the proc
compiler is not commenting
out the 'exec sql include' line for a header that is already defined?
Any suggestions? Received on Sun Jan 23 2000 - 17:18:11 CET