Skip site navigation (1) Skip section navigation (2)

Re: ECPG and C++ compilation

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Matthew Vanecek <mevanecek(at)yahoo(dot)com>
Cc: Postgresql Interfaces List <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: ECPG and C++ compilation
Date: 2003-02-24 15:24:58
Message-ID: 20030224152458.GA2980@feivel.fam-meskes.de (view raw or flat)
Thread:
Lists: pgsql-interfaces
On Sat, Feb 22, 2003 at 09:14:43AM -0600, Matthew Vanecek wrote:
> I don't think that will work.  I can never get ecpg to recognize
> typedefed structs, even when declaring the typedefed struct within a
> DECLARE SECTION.

Now that I do not understand. What exactly doesn't work? do you have a
small example?

> Probably doing the sizeof calculation within ecpg would be the proper
> way to go, and using that value in the ECPGdo call instead of
> sizeof(whatever).  With respect to C++, anyhow.  I'm sure the developers

But that would mean you cannot precompile on one machine for usage on
another. Right?

> would accept a patch, but realize that ecpg generates native C code, and
> follows C conventions.  C++ may parse the code differently in some
> cases. Your best bet is going to be using the C compiler on these files
> to generate you object code, and your C++ compiler on your native C++
> code, as Peter suggested.

I agree as well.

Michael
-- 
Michael Meskes
Email: Michael(at)Fam-Meskes(dot)De
ICQ: 179140304
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

In response to

Responses

pgsql-interfaces by date

Next:From: Michael MeskesDate: 2003-02-24 15:26:53
Subject: Re: ECPG include problem
Previous:From: Christoph HallerDate: 2003-02-24 14:25:44
Subject: Re: Using LISTEN/NOTIFY with ecpg

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group