X-Original-To: pgsql-interfaces@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0A7C94758F1 for ; Mon, 24 Feb 2003 10:26:02 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 86270-04 for ; Mon, 24 Feb 2003 10:25:51 -0500 (EST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by postgresql.org (Postfix) with ESMTP id 02683475A45 for ; Mon, 24 Feb 2003 10:25:02 -0500 (EST) Received: from [212.227.126.155] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 18nKTZ-0000EC-00; Mon, 24 Feb 2003 16:25:05 +0100 Received: from [80.142.180.25] (helo=fam-meskes.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 18nKTZ-0002Pa-00; Mon, 24 Feb 2003 16:25:05 +0100 Received: by fam-meskes.de (Postfix, from userid 1000) id B033610EF50; Mon, 24 Feb 2003 16:24:58 +0100 (CET) Date: Mon, 24 Feb 2003 16:24:58 +0100 From: Michael Meskes To: Matthew Vanecek Cc: Postgresql Interfaces List Subject: Re: ECPG and C++ compilation Message-ID: <20030224152458.GA2980@feivel.fam-meskes.de> Mail-Followup-To: Matthew Vanecek , Postgresql Interfaces List References: <1045926883.27169.76.camel@reliant.home.pri> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1045926883.27169.76.camel@reliant.home.pri> User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/101 X-Sequence-Number: 3722 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@Fam-Meskes.De ICQ: 179140304 Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!