Building libpq on Windows - Mailing list pgsql-novice

From Helge Elvik
Subject Building libpq on Windows
Date
Msg-id 013a01c5e5ec$5711e400$0f0aa8c0@gispartner.no
Whole thread Raw
List 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

pgsql-novice by date:

Previous
From:
Date:
Subject: WinXP PGSQL 8.0 and pgAdmin III Upgrade
Next
From: Michael Fuhr
Date:
Subject: Re: Using values in an array in a subquery