From: | pawel <pgajer(at)chow(dot)mat(dot)jhu(dot)edu> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Precompilation error (ecpg) |
Date: | 1999-12-13 23:39:30 |
Message-ID: | 385583B2.A836EB30@math.jhu.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
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;
}
From | Date | Subject | |
---|---|---|---|
Next Message | Gary MacMinn | 1999-12-14 00:18:41 | [GENERAL] Clients in different Time Zones |
Previous Message | Lamar Owen | 1999-12-13 23:31:02 | Re: [GENERAL] Re: With what options RPM was compiled? ( Was: CzechWin1250 sorting q) |