From: pawel <pgajer@chow.mat.jhu.edu>
To: pgsql-interfaces@postgresql.org
Subject: ecpg precompilation error
Date: Mon, 13 Dec 1999 12:01:14 -0500
Message-ID: <3855265A.8D0C723B@math.jhu.edu> (raw)
Hi,
when trying to precompile the following code with
> ecpg -I/usr/include/pgsql ecpg_test.pc
I am getting the following error message
ecpg_test.pc:27: invalid datatype 'zipcode_record'
this is probably something very simple, but I don't get this error,
when processing the code with Oracle.
I would appreciate any feedback.
thanks
pawel
--------------------------------- ecpg_test.pc file ---------------
#include <stdio.h>
#include <string.h>
typedef struct {
int zip;
} zipcode_record;
EXEC SQL INCLUDE sqlca;
void add_customer();
void main() {
/* just a test */
}
void add_customer() {
EXEC SQL BEGIN DECLARE SECTION;
zipcode_record zrec;
/* line 27 */
EXEC SQL END DECLARE SECTION;
}
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: pgajer@chow.mat.jhu.edu
Subject: Re: ecpg precompilation error
In-Reply-To: <3855265A.8D0C723B@math.jhu.edu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox