Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> structure defined outside of DECALRE in PROC C++
When precompiling a proc program with CODE=CPP, I found the following:
if I define a structure ouside of the DECLARE section...
struct a {
char var1[3];
}
then in the declare section define a ptr to the structure...
EXEC SQL BEGIN DECLARE SECTION;
struct a *p;
EXEC SQL END DECLARE SECTION;
the precompiler complains:
PCC-S-02420, Incomplete (or missing) type specification
:p->var1
Can someone explain this behavior, and/or recommend an alternative to defining all structs referenced in a DECALRE section within a DECLARE section? The structure is used by non-PROC source files as well as proc source files. Received on Fri Dec 07 2001 - 09:33:34 CST
![]() |
![]() |