From: Robert Ayrapetyan <robert.ayrapetyan@comodo.com>
To: pgsql-interfaces@postgresql.org
Subject: Problem with getting static libpq.a from PostgresSQL 8.2.4 sources using MinGW
Date: Mon, 17 Sep 2007 16:23:46 +0300
Message-ID: <692511163.20070917162346@comodo.com> (raw)
Hello,
Problem with getting static libpq.a from PostgresSQL 8.2.4 sources using
MinGW.
In documentation regarding Win32 (http://www.postgresql.org/docs/8.2/interactive/install-win32.html)
there is remarked that after building we will have following binaries:
interfaces\libpq\Release\libpq.dll
The dynamically linkable frontend library
interfaces\libpq\Release\libpqdll.lib
Import library to link your programs to libpq.dll
interfaces\libpq\Release\libpq.lib
Static version of the frontend library
And I really got them (libpq.lib - 323Kb, pibpq.dll - 104Kb, libpqdll.lib - 26,6Kb)
There is nothing remarked about MinGW installation. But after building with MingW I have got libpq.dll (size 149Kb) and libpq.a (size 96Kb).
Problem is that I can't link any app statically with libpq.a -
libpq.dll always appears in dependencies.
Question is: how to get REAL static libpq.a with mingw?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: robert.ayrapetyan@comodo.com
Subject: Re: Problem with getting static libpq.a from PostgresSQL 8.2.4 sources using MinGW
In-Reply-To: <692511163.20070917162346@comodo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox