Обсуждение: BUG #3744: libpq.a missed from /lib directory
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.
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
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.