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

Re: libpq++ on Windows

From: Christian Ullrich <chris(at)chrullrich(dot)de>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: libpq++ on Windows
Date: 2001-07-01 22:23:19
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
* Peter Eisentraut wrote on Sunday, 2001-07-01:

> Christian Ullrich writes:
> > - The additions to and config.h.win32 are not very elegant,
> >   especially But I need to export the classes, and that's
> >   the only way to go.
> Why not put the addition to into config.h.win32?  When doing a
> native Win32 build isn't used anyway.

Because the '#define DLLAPI' 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"

In response to


pgsql-interfaces by date

Next:From: Ernesto A. Lira CastroDate: 2001-07-02 03:03:53
Subject: Security
Previous:From: Peter EisentrautDate: 2001-07-01 18:28:34
Subject: Re: libpq++ on Windows

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