From: Andrew Dunstan <andrew@dunslane.net>
To: Robert Haas <robertmhaas@gmail.com>
Cc: XiaoboGu <guxiaobo1982@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Is there a way to build PostgreSQL client libraries with MinGW
Date: Thu, 20 Jan 2011 22:06:06 -0500
Message-ID: <4D38F81E.9050508@dunslane.net> (raw)
In-Reply-To: <AANLkTinY2PTxQ6yFmjE=C8fAZ1sijO1u_ehtHJ_vT5PB@mail.gmail.com>
References: <001b01cbb8b5$3ba547b0$b2efd710$@com>
<AANLkTinY2PTxQ6yFmjE=C8fAZ1sijO1u_ehtHJ_vT5PB@mail.gmail.com>
On 01/20/2011 09:52 PM, Robert Haas wrote:
> On Thu, Jan 20, 2011 at 10:17 AM, XiaoboGu<guxiaobo1982@gmail.com> wrote:
>> Hi,
>> We are using R to work with 64bit PostgreSQL client libraries, and
>> to avoid compiler compatibility issues the R development community suggest
>> using the same compiler for both the main application and dlls. So do you
>> have any experience to build libpq.dll using MinGW 64 bit. Thanks.
> According to the documentation, it's not supported.
>
> http://www.postgresql.org/docs/current/static/install-win32.html
>
> "Building using MinGW or Cygwin uses the normal build system, see
> Chapter 15 and the specific notes in Section 15.8.5 and Section
> 15.8.2. These builds cannot generate 64-bit binaries. Cygwin is not
> recommended and should only be used for older versions of Windows
> where the native build does not work, such as Windows 98. MinGW is
> only recommended if you are building other modules using it. The
> official binaries are built using Visual Studio."
That advice needs to be taken with a grain or two of salt. First, while
you probably should not use Cygwin postgres as a production server, it
is still the best way to run psql on Windows that I know of. And second,
the stuff about not being able to generate 64-bit binaries with Mingw is
no longer true (that's why it's no longer called Mingw32), although it
is true that nobody I know has yet tried to do so. It's on my long TODO
list, and well worth doing. (Relying on one compiler is the techno
equivalent of monolingualism, which my sister's bumper sticker used to
tell me is a curable condition.)
cheers
andrew
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: andrew@dunslane.net, robertmhaas@gmail.com, guxiaobo1982@gmail.com, pgsql-hackers@postgresql.org
Subject: Re: Is there a way to build PostgreSQL client libraries with MinGW
In-Reply-To: <4D38F81E.9050508@dunslane.net>
References: <001b01cbb8b5$3ba547b0$b2efd710$@com> <AANLkTinY2PTxQ6yFmjE=C8fAZ1sijO1u_ehtHJ_vT5PB@mail.gmail.com> <4D38F81E.9050508@dunslane.net>
* 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