X-Original-To: pgsql-ports-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 925169FA5BE for ; Thu, 15 Jun 2006 18:26:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 53972-02 for ; Thu, 15 Jun 2006 18:25:57 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from remote-print.com (ms92.mailserviceslc.com [216.243.195.92]) by postgresql.org (Postfix) with ESMTP id 297CA9FA13E for ; Thu, 15 Jun 2006 18:25:56 -0300 (ADT) Received: (qmail 6695 invoked by uid 89); 15 Jun 2006 21:25:41 -0000 Received: from unknown (HELO ?192.168.1.86?) (avick@remote-print.com@192.168.1.86) by www.remote-print.com with SMTP; 15 Jun 2006 21:25:41 -0000 Message-ID: <4491D023.7050407@remote-print.com> Date: Thu, 15 Jun 2006 16:24:51 -0500 From: Andrew Vick User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane CC: pgsql-ports@postgresql.org Subject: Re: errcode redefinition References: <4491C692.9080401@remote-print.com> <936.1150405283@sss.pgh.pa.us> In-Reply-To: <936.1150405283@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/8 X-Sequence-Number: 2449 Tom Lane wrote: > Andrew Vick 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