Received: from mail.rdc1.md.home.com (imail@ha1.rdc1.md.home.com [24.2.2.66]) by hub.org (8.9.3/8.9.3) with ESMTP id LAA21160 for ; Mon, 13 Dec 1999 11:58:25 -0500 (EST) (envelope-from pgajer@chow.mat.jhu.edu) Received: from math.jhu.edu ([24.5.88.152]) by mail.rdc1.md.home.com (InterMail v4.01.01.00 201-229-111) with ESMTP id <19991213165822.JYJP26939.mail.rdc1.md.home.com@math.jhu.edu> for ; Mon, 13 Dec 1999 08:58:22 -0800 Sender: pawel Message-ID: <3855265A.8D0C723B@math.jhu.edu> Date: Mon, 13 Dec 1999 12:01:14 -0500 From: pawel X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.2.13-14mdk i586) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: ecpg precompilation error Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 #include 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; }