Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> structure defined outside of DECALRE in PROC C++

structure defined outside of DECALRE in PROC C++

From: Edward A Thompson <ed4becky_2000_at_yahoo.com>
Date: 7 Dec 2001 07:33:34 -0800
Message-ID: <d913df37.0112070733.5901792f@posting.google.com>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US