Re: ECPG and C++ compilation

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Demetres Pantermalis <dpant(at)intracom(dot)gr>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: ECPG and C++ compilation
Date: 2003-02-20 17:16:05
Message-ID: Pine.LNX.4.44.0302201815100.2544-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Rudy Lippan 2003-02-20 22:33:49 Re: Perl interfacing to old and new backends.
Previous Message Demetres Pantermalis 2003-02-20 15:34:50 ECPG and C++ compilation