Re: Linking against static libpq using Visual C++ - Mailing list pgsql-general

From Julia Jacobson
Subject Re: Linking against static libpq using Visual C++
Date
Msg-id 4D94583C.7060604@arcor.de
Whole thread Raw
In response to Re: Linking against static libpq using Visual C++  (Magnus Hagander <magnus@hagander.net>)
List pgsql-general
Hi,

Although I finally managed to build libpq using Visual C++, I'm
continuously experiencing problems with this IDE.
Therefore I switched to MinGW and it was indeed easy to compile libpq
with it from the first time on.
However, I'm experiencing the same problem as discussed on
http://archives.postgresql.org/pgsql-hackers-win32/2004-10/msg00010.php
Although linking the static compilation product libpq.a (106 Kb in size)
to my application, the application only runs with libpq being present.
This is confirmed by running depends.exe on it, which tells me that the
application still depends on libpq.
I'm using PostgreSQL version 8.4.6 and the current version of MinGW/MSys.
How can I get a really static libpq and not one that still imports the
dynamic link libraries?

Thanks in advance,
Julia

pgsql-general by date:

Previous
From: Gianni Ciolli
Date:
Subject: Re: read-only UNLOGGED tables
Next
From: Leonardo Francalanci
Date:
Subject: Re: read-only UNLOGGED tables