'PVALUE' error with PROJ4 when building PHP MapScript??

Frank Warmerdam fwarmerdam at GMAIL.COM
Thu Feb 17 08:22:02 PST 2005


On Thu, 17 Feb 2005 08:38:54 -0600, Bob Bruce <covariance at shaw.ca> wrote:
> I have been trying to build the nightly build of MapServer, specifically
> PHP MapScript with PHP5 on a WIN2K system and have just got an error on a
> link that has me stumped and am wondering if someone can help me - please?
>
> The error is:
> C:\Program Files\Microsoft Visual Studio\VC98\include\winreg.h(88) : error
> C2371: 'PVALUE' : re
> definition; different basic types
>         c:\projects\proj-4.4.9/src\projects.h(178) : see declaration
> of 'PVALUE'

Bob,

I believe you need USE_PROJ_API_H defined (ie. -DUSE_PROJ_API_H
in CFLAGS) so that MapServer won't use the old projects.h file.  It
should be using proj_api.h which avoids conflicts with Win32.

Perhaps this should be put into the makefile that builds the php stuff?

On second thought, I have stripped out this test completely in the 4.5
source tree.  We don't need to support ancient versions of PROJ.4 anymore.

If changing your local makefile is a problem, just add the following at
the very beginning of mapproject.h:

#define USE_PROJ_API_H

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the MapServer-users mailing list