agora inbox for pgsql-interfaces@postgresql.org  
help / color / mirror / Atom feed
From: Christian Ullrich <chris@chrullrich.de>
To: pgsql-interfaces@postgresql.org
Subject: Re: libpq++ on Windows
Date: Mon, 2 Jul 2001 00:23:19 +0200
Message-ID: <20010702002319.A1387@christian.chrullrich.de> (raw)
In-Reply-To: <Pine.LNX.4.30.0107012027420.1674-100000@peter.localdomain>
References: <20010701174549.A976@christian.chrullrich.de>
	<Pine.LNX.4.30.0107012027420.1674-100000@peter.localdomain>

* 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"



view thread (26+ messages)  latest in thread

Message-ID: <20010702002319.A1387@christian.chrullrich.de>
Permalink:  ../20010702002319.A1387@christian.chrullrich.de/
Also on:    postgresql.org/message-id/20010702002319.A1387@christian.chrullrich.de

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: chris@chrullrich.de
  Subject: Re: libpq++ on Windows
  In-Reply-To: <20010702002319.A1387@christian.chrullrich.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox