From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: PostgreSQL-interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: ecpg problem in 7.4 beta
Date: Thu, 7 Aug 2003 00:43:31 -0400 (EDT)
Message-ID: <200308070443.h774hW211357@candle.pha.pa.us> (raw)
In-Reply-To: <200308060022.h760M6K29050@candle.pha.pa.us>
OK, I think I can fix this. The include of postgres_fe.h was done
recently:
revision 1.54
date: 2003/08/01 13:53:36; author: petere; state: Exp; lines: +4 -2
Make ecpg SQLSTATE-aware. Map existing SQLCODE assignments to SQLSTATEs,
rather than parsing the message. Add some documentation about embedded
SQL.
It seems like doing postgres_fe.h rather than postgres_ext.h was just an
oversight, so I will make the change in CVS.
---------------------------------------------------------------------------
Bruce Momjian wrote:
> I tried running ecpg in 7.4 beta and got:
>
> $ ecpg x.pgc
> $ gcc -I/usr/local/pgsql/include -L/usr/local/pgsql/lib -lpgtypes -lecpg x.c
> In file included from x.c:4:
> /usr/local/pgsql/include/ecpglib.h:9: postgres_fe.h: No such file or
> directory
>
> Why is ecpglib.h referencing postgres_fe.h? I only see postgres_fe.h in
> the install directory under pgsql/include/internal.
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman@candle.pha.pa.us | (610) 359-1001
> + If your life is a hard drive, | 13 Roberts Road
> + Christ can be your backup. | Newtown Square, Pennsylvania 19073
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
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: pgman@candle.pha.pa.us
Subject: Re: ecpg problem in 7.4 beta
In-Reply-To: <200308070443.h774hW211357@candle.pha.pa.us>
* 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