Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Pro*C++: Problem with Pointer to Array of Struct
Hi,
I tried out the example shown in the "Pro*C/C++ Precompiler Programmer s
Guide, Chapter 12: Using Host Array, Example6: Using a Pointer to an
Array of Structs" (pages 12-26/27):
typedef struct dept
{
int deptno;
char dname[15];
char loc[14];
}
void insert data(d, n)
dept *d;
int n;
{
exec sql for :n insert into dept values ( :d );
}
The PreCompiler gave the following err message:
Semantic error at line 12, column 17, file test.pc: exec sql for :n insert into dept values ( :d );
................1
................1
.............................................1PCC-S-02322, found undefined indentifier
So, has anyone got an idea?
Thx
Ullrich
Received on Wed Apr 19 2000 - 00:00:00 CDT