Building libpq on Windows

From: "Helge Elvik" <helge(dot)elvik(at)gispartner(dot)no>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Building libpq on Windows
Date: 2005-11-10 11:46:07
Message-ID: 013a01c5e5ec$5711e400$0f0aa8c0@gispartner.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi,

I'm currently trying to do a custom build of Mapserver to get FastCGI
support, and one of our requirements is PostGIS support built into it.
I've been having problems getting it to compile with MS VS 2003 though.
I get the following errors when I type "nmake /f win32.mak":

=================
cd include
if not exist pg_config.h copy pg_config.h.win32 pg_config.h
cd ..
cd interfaces\libpq
nmake /f win32.mak

Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.

Building the Win32 static library...

cl.exe @C:\DOCUME~1\helvik\LOCALS~1\Temp\nmE6.tmp
getaddrinfo.c
..\..\port\getaddrinfo.c(244) : error C2065: 'WSA_NOT_ENOUGH_MEMORY' :
undeclare
d identifier
..\..\port\getaddrinfo.c(334) : error C2051: case expression not
constant
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
.NET 2003\
VC7\BIN\nmake.exe"' : return code '0x2'
Stop.
=================

Any help would be appreciated.

Thanks,
Helge Elvik

Browse pgsql-novice by date

  From Date Subject
Next Message Michael Fuhr 2005-11-10 18:15:13 Re: Using values in an array in a subquery
Previous Message operationsengineer1 2005-11-09 23:22:29 WinXP PGSQL 8.0 and pgAdmin III Upgrade