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

Home -> Community -> Usenet -> c.d.o.server -> Pro*C++: Problem with Pointer to Array of Struct

Pro*C++: Problem with Pointer to Array of Struct

From: Ullrich Bartels <ullrich.bartels_at_t-online.de>
Date: 2000/04/19
Message-ID: <38FE1CEB.7952E3F1@t-online.de>#1/1

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

PCC-S-02322, found undefined indentifier Semantic error at line 12, column 17, file test.pc:   exec sql for :n insert into dept values ( :d );
................1

PCC-S-02330, expecting an expression of integer type Semantic error at line 12, column 46, file test.pc:   exec sql for :n insert into dept values ( :d );
.............................................1
PCC-S-02322, found undefined indentifier   

So, has anyone got an idea?

Thx
Ullrich Received on Wed Apr 19 2000 - 00:00:00 CDT

Original text of this message

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