ECPG and C++ compilation

From: "Demetres Pantermalis" <dpant(at)intracom(dot)gr>
To: <pgsql-interfaces(at)postgresql(dot)org>
Subject: ECPG and C++ compilation
Date: 2003-02-20 15:34:50
Message-ID: NDBBLJPIEGAHHANHMMBBOEODCNAA.dpant@intracom.gr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Has anybody tried to compile the source of test2.pgc (included in the
sources postgresql-7.3.1/src/interfaces/ecpg/test dir) with a C++ compiler??
I've tried this on Solaris 8 with the SUN compiler (CC: Sun WorkShop 6
update 1 C++ 5.2 Patch 109508-08 2002/03/07) as well as with g++ (3.1)

What I get is the following error:
test2.pgc: In function `int main()':
test2.pgc:71: `sizeof' applied to incomplete type `varchar_name'
test2.pgc:101: `sizeof' applied to incomplete type `varchar_name'

Can anybody suggest a method to overcome this problem?

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Peter Eisentraut 2003-02-20 17:16:05 Re: ECPG and C++ compilation
Previous Message Christoph Haller 2003-02-20 13:32:44 structured host variable arrays within ecpg