Received: from moutvdom00.kundenserver.de (moutvdom00.kundenserver.de [195.20.224.149]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f61MMIa43614 for ; Sun, 1 Jul 2001 18:22:18 -0400 (EDT) (envelope-from chris@chrullrich.de) Received: from [195.20.224.219] (helo=mrvdom03.kundenserver.de) by moutvdom00.kundenserver.de with esmtp (Exim 2.12 #2) id 15Gpbb-0003x3-00 for pgsql-interfaces@postgresql.org; Mon, 2 Jul 2001 00:22:15 +0200 Received: from pd904dd35.dip.t-dialin.net ([217.4.221.53] helo=ser1.chrullrich.de) by mrvdom03.kundenserver.de with esmtp (Exim 2.12 #2) id 15GpbT-0001UB-00 for pgsql-interfaces@postgresql.org; Mon, 2 Jul 2001 00:22:07 +0200 Received: from christian.chrullrich.de (christian.chrullrich.de [192.168.0.2]) by ser1.chrullrich.de (Postfix) with ESMTP id 0F24593 for ; Mon, 2 Jul 2001 00:22:06 +0200 (CEST) Received: by christian.chrullrich.de (Postfix on SuSE Linux 7.2 (i386), from userid 1000) id D7603D91; Mon, 2 Jul 2001 00:23:19 +0200 (CEST) Date: Mon, 2 Jul 2001 00:23:19 +0200 From: Christian Ullrich To: pgsql-interfaces@postgresql.org Subject: Re: libpq++ on Windows Message-ID: <20010702002319.A1387@christian.chrullrich.de> Mail-Followup-To: pgsql-interfaces@postgresql.org References: <20010701174549.A976@christian.chrullrich.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.3.16i In-Reply-To: ; from peter_e@gmx.net on Sun, Jul 01, 2001 at 08:28:34PM +0200 X-Current-Uptime: 0 d, 02:07:42 h X-Archive-Number: 200107/4 X-Sequence-Number: 1757 * Peter Eisentraut wrote on Sunday, 2001-07-01: > Christian Ullrich writes: > > > - The additions to config.h.in and config.h.win32 are not very elegant, > > especially config.h.in. But I need to export the classes, and that's > > the only way to go. > > Why not put the addition to config.h.in into config.h.win32? When doing a > native Win32 build config.h.in isn't used anyway. Because the '#define DLLAPI' in config.h.in -- from which the config.h for Unix and Cygwin/Win32 builds is generated -- is necessary to make the compiler happy about the modifications to the class declarations. When building the DLL with MSVC I need to export the classes, and I don't think I can do that with .DEF files, so I must put __declspec(dllexport) into the class declarations. But because gcc will choke on them, I define them empty for gcc builds. -- Christian Ullrich Registrierter Linux-User #125183 "Sie können nach R'ed'mond fliegen -- aber Sie werden sterben"