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: 20010702002319.A1387@christian.chrullrich.de (view raw or flat)
Thread:
Lists: pgsql-interfaces
* 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"

In response to

Responses

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-2014 The PostgreSQL Global Development Group