X-Original-To: pgsql-interfaces@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E2B5447580B for ; Thu, 20 Feb 2003 10:33:14 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 16352-03 for ; Thu, 20 Feb 2003 10:33:04 -0500 (EST) Received: from mailserv.intranet.gr (mailserv.intranet.GR [146.124.14.106]) by postgresql.org (Postfix) with ESMTP id 6E137474E5C for ; Thu, 20 Feb 2003 10:33:03 -0500 (EST) Received: from mailserv.intranet.gr (localhost [127.0.0.1]) by mailserv.intranet.gr (8.11.3/8.11.3) with ESMTP id h1KFZ6m16124 for ; Thu, 20 Feb 2003 17:35:06 +0200 (EET) Received: from alpha.intranet.gr (alpha.intranet.GR [146.124.12.11]) by mailserv.intranet.gr (8.11.3/8.11.3) with ESMTP id h1KFZ5616109 for ; Thu, 20 Feb 2003 17:35:05 +0200 (EET) Received: from csms (csms [146.124.12.43]) by alpha.intranet.gr (8.9.1b+Sun/8.9.1) with SMTP id RAA20944 for ; Thu, 20 Feb 2003 17:31:59 +0200 (EET) From: "Demetres Pantermalis" To: Subject: ECPG and C++ compilation Date: Thu, 20 Feb 2003 17:34:50 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/87 X-Sequence-Number: 3708 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?