From: Andrew Vick <avick@remote-print.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-ports@postgresql.org
Subject: Re: errcode redefinition
Date: Thu, 15 Jun 2006 16:24:51 -0500
Message-ID: <4491D023.7050407@remote-print.com> (raw)
In-Reply-To: <936.1150405283@sss.pgh.pa.us>
References: <4491C692.9080401@remote-print.com>
<936.1150405283@sss.pgh.pa.us>
Tom Lane wrote:
> Andrew Vick <avick@remote-print.com> writes:
>
>>I am trying to build the Postgres drivers for Qt on Windows.
>
>
> Why are these drivers trying to include elog.h? That's a backend-only
> header. If the reason is that they're including postgres.h, they should
> likely be including postgres_fe.h instead.
That is the case. I tried switching it to postgres_fe.h, but then I got errors about the pg_type structure not being defined. It appears that the CATALOG macro (which defines the structure) is defined in postgres.h but not in postgres_fe.h. I don't see any other headers in src/ which do define it.
I worked around this by switching back to postgres.h, and #defining ELOG_H above postgres.h (to block elog.h). Nonoptimal, but it gets the compile going again.
Thanks for the suggestion; knowing that elog.h was backend only gave me the courage to exclude it.
-Andrew Vick
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-ports@postgresql.org
Cc: avick@remote-print.com, tgl@sss.pgh.pa.us
Subject: Re: errcode redefinition
In-Reply-To: <4491D023.7050407@remote-print.com>
References: <4491C692.9080401@remote-print.com> <936.1150405283@sss.pgh.pa.us> <4491D023.7050407@remote-print.com>
* 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