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

From Peter Eisentraut
Subject Re: ECPG and C++ compilation
Date
Msg-id Pine.LNX.4.44.0302201815100.2544-100000@peter.localdomain
Whole thread Raw
In response to ECPG and C++ compilation  ("Demetres Pantermalis" <dpant@intracom.gr>)
Responses Re: ECPG and C++ compilation
List pgsql-interfaces
Demetres Pantermalis writes:

> 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?

Use a C compiler to compile C code and a C++ compiler to compile C++ code,
and then link them together if you are so inclined.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-interfaces by date:

Previous
From: "Demetres Pantermalis"
Date:
Subject: ECPG and C++ compilation
Next
From: Rudy Lippan
Date:
Subject: Re: Perl interfacing to old and new backends.