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 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
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"
From | Date | Subject | |
---|---|---|---|
Next Message | Ernesto A. Lira Castro | 2001-07-02 03:03:53 | Security |
Previous Message | Peter Eisentraut | 2001-07-01 18:28:34 | Re: libpq++ on Windows |