Compiling libpqddll.lib win32 mingw msys

Lists: pgsql-general
From: "Keith Hutchison" <keith(dot)kjtl(dot)hutchison(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Compiling libpqddll.lib win32 mingw msys
Date: 2006-09-02 03:31:14
Message-ID: 45435c1a0609012031y763fb652k9b5d3e1ca4beb2db@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

What parameters have to be passed to configure or make to build the
import library files like libpqddll.lib on win32 using msys and mingw?

Thank in advance

--
Keith Hutchison
http://balance-infosystems.com http://realopen.org
http://www.kasamba.com/Keith-Hutchison


From: "Keith Hutchison" <keith(dot)kjtl(dot)hutchison(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Compiling libpqddll.lib win32 mingw msys
Date: 2006-09-03 02:43:16
Message-ID: 45435c1a0609021943rb811d05se691bf222e27eb94@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Context postgres-8.1.3. win32

Found out to get libpqddll this had to be compiled with
the VS compiler.

Using the following steps.
.
1. Download the MS Platform SDK
http://download.microsoft.com/download/a/5/f/a5f0d781-e201-4ab6-8c6a-9bb4efed1e1a/PSDK-x86.exe
2. Change pg_config.h line 11 to have a closing quote on a string
3. Set paths to include
C:\Program Files\Microsoft Platform SDK\Include and
C:\Program Files\Microsoft Platform SDK\Lib
4. change fe-connector.c to include a reference for ShFolder.h
#include <ShFolder.h>
5. compile release files using nmake /f win32.mak and debug files
using nmake /f win32.mak DEBUG=1 from the src folder for
postgresql-8.1.3.

The binaries don't compile but the libraries and dlls do.

--
Keith Hutchison
http://balance-infosystems.com http://realopen.org