BUG #3744: libpq.a missed from /lib directory

Started by Lorenzo Fioriniover 18 years ago3 messagesbugs
Jump to latest
#1Lorenzo Fiorini
lorenzo.fiorini@gmail.com

The following bug has been logged online:

Bug reference: 3744
Logged by: Lorenzo Fiorini
Email address: lorenzo.fiorini@gmail.com
PostgreSQL version: 8.3 beta2
Operating system: Windows 2000
Description: libpq.a missed from /lib directory
Details:

In the 8.2.5 there is a libpq.a in the lib dir that allow to link libpq to
Windows apps built with mingw.

In the 8.3 beta 2 it seems missed.

#2Magnus Hagander
magnus@hagander.net
In reply to: Lorenzo Fiorini (#1)
Re: BUG #3744: libpq.a missed from /lib directory

On Mon, Nov 12, 2007 at 08:14:16AM +0000, Lorenzo Fiorini wrote:

The following bug has been logged online:

Bug reference: 3744
Logged by: Lorenzo Fiorini
Email address: lorenzo.fiorini@gmail.com
PostgreSQL version: 8.3 beta2
Operating system: Windows 2000
Description: libpq.a missed from /lib directory
Details:

In the 8.2.5 there is a libpq.a in the lib dir that allow to link libpq to
Windows apps built with mingw.

In the 8.3 beta 2 it seems missed.

This is by design. 8.3 is build with Visual C++ instead of mingw, which of
course doesn't generate the nonstandard .a files.
If you're linking against it with mingw, IIRC you can link directly against
the DLL. If that doesn't work, there are tools out there to generate import
libraries from the DLL file.

//Magnus

#3Dave Page
dpage@pgadmin.org
In reply to: Lorenzo Fiorini (#1)
Re: BUG #3744: libpq.a missed from /lib directory

Lorenzo Fiorini wrote:

The following bug has been logged online:

Bug reference: 3744
Logged by: Lorenzo Fiorini
Email address: lorenzo.fiorini@gmail.com
PostgreSQL version: 8.3 beta2
Operating system: Windows 2000
Description: libpq.a missed from /lib directory
Details:

In the 8.2.5 there is a libpq.a in the lib dir that allow to link libpq to
Windows apps built with mingw.

In the 8.3 beta 2 it seems missed.

8.3 is built with Visual C++ which creates a .lib import library instead
of .a. If memory serves, mingw should be fine with either format, it was
just VC++ which didn't like .a's which is why we shipped both with the
mingw builds.

Regards, Dave.