ECPG and C++ compilation - Mailing list pgsql-interfaces

From Demetres Pantermalis
Subject ECPG and C++ compilation
Date
Msg-id NDBBLJPIEGAHHANHMMBBOEODCNAA.dpant@intracom.gr
Whole thread Raw
Responses Re: ECPG and C++ compilation  (Peter Eisentraut <peter_e@gmx.net>)
List 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?



pgsql-interfaces by date:

Previous
From: Christoph Haller
Date:
Subject: structured host variable arrays within ecpg
Next
From: Peter Eisentraut
Date:
Subject: Re: ECPG and C++ compilation