[mapserver-dev] mapsymbol.c errors with master/git

Umberto Nicoletti umberto.nicoletti at gmail.com
Mon May 7 15:22:51 EDT 2012


my fault, I'm logging in right now to fix it

Umberto

On Monday, May 7, 2012, Jeff McKenna wrote:

> Hello devs,
>
> I am trying to compile MapServer/master on Windows (MSVC 2008) and
> getting error messages in mapsymbol.c (below). Can anyone give hints to
> this possible issue?  (branch-6-0 compiles fine)
>
> Thanks,
>
> -jeff
>
> ***********
> mapsymbol.c
> mapsymbol.c(130) : warning C4013: 'InterlockedExchangeAdd' undefined;
> assuming extern retu
> rning int
> mapsymbol.c(130) : warning C4431: missing type specifier - int assumed.
> Note: C no longer
> supports default-int
> mapsymbol.c(130) : error C2146: syntax error : missing ')' before
> identifier 'LONG'
> mapsymbol.c(130) : error C2065: 'LONG' : undeclared identifier
> mapsymbol.c(130) : warning C4197: 'volatile int' : top-level volatile in
> cast is ignored
> mapsymbol.c(130) : error C2059: syntax error : ')'
> mapsymbol.c(134) : error C2059: syntax error : 'if'
> mapsymbol.c(135) : error C2059: syntax error : 'if'
> mapsymbol.c(138) : error C2059: syntax error : 'if'
> mapsymbol.c(144) : error C2059: syntax error : 'if'
> mapsymbol.c(145) : error C2143: syntax error : missing ')' before '->'
> mapsymbol.c(145) : error C2143: syntax error : missing '{' before '->'
> mapsymbol.c(145) : error C2059: syntax error : '->'
> mapsymbol.c(145) : error C2059: syntax error : ')'
> mapsymbol.c(146) : error C2143: syntax error : missing ')' before '->'
> mapsymbol.c(146) : error C2143: syntax error : missing '{' before '->'
> mapsymbol.c(146) : error C2059: syntax error : '->'
> mapsymbol.c(146) : error C2059: syntax error : ')'
> mapsymbol.c(147) : error C2059: syntax error : 'if'
> mapsymbol.c(148) : error C2059: syntax error : 'if'
> mapsymbol.c(150) : error C2059: syntax error : 'if'
> mapsymbol.c(153) : error C2059: syntax error : 'return'
> mapsymbol.c(154) : error C2059: syntax error : '}'
> mapsymbol.c(579) : warning C4013: 'loadSymbol' undefined; assuming
> extern returning int
> mapsymbol.c(636) : warning C4244: '=' : conversion from 'double' to
> 'int', possible loss o
> f data
> mapsymbol.c(639) : warning C4244: '=' : conversion from 'double' to
> 'int', possible loss o
> f data
> mapsymbol.c(640) : warning C4244: '=' : conversion from 'double' to
> 'int', possible loss o
> f data
> mapsymbol.c(641) : warning C4244: '=' : conversion from 'double' to
> 'int', possible loss o
> f data
> mapsymbol.c(715) : warning C4431: missing type specifier - int assumed.
> Note: C no longer
> supports default-int
> mapsymbol.c(715) : error C2146: syntax error : missing ')' before
> identifier 'LONG'
> mapsymbol.c(715) : error C2065: 'LONG' : undeclared identifier
> mapsymbol.c(715) : warning C4197: 'volatile int' : top-level volatile in
> cast is ignored
> mapsymbol.c(715) : error C2059: syntax error : ')'
> mapsymbol.c(720) : error C2143: syntax error : missing '{' before '*'
> mapsymbol.c(720) : warning C4431: missing type specifier - int assumed.
> Note: C no longer
> supports default-int
> mapsymbol.c(720) : error C2371: 'msRemoveSymbol' : redefinition;
> different basic types
>
> d:\build\mapserver-buildkit-2008\mapserver-git-master\mapserver.h(2042)
> : see decl
> aration of 'msRemoveSymbol'
> mapsymbol.c(738) : warning C4431: missing type specifier - int assumed.
> Note: C no longer
> supports default-int
> mapsymbol.c(738) : error C2146: syntax error : missing ')' before
> identifier 'LONG'
> mapsymbol.c(738) : error C2065: 'LONG' : undeclared identifier
> mapsymbol.c(738) : warning C4197: 'volatile int' : top-level volatile in
> cast is ignored
> mapsymbol.c(738) : error C2059: syntax error : ')'
> mapsymbol.c(739) : warning C4133: 'return' : incompatible types - from
> 'symbolObj *' to 'i
> nt *'
> mapsymbol.c(815) : warning C4127: conditional expression is constant
> mapsymbol.c(828) : warning C4127: conditional expression is constant
> mapsymbol.c(834) : warning C4127: conditional expression is constant
> mapsymbol.c(837) : warning C4127: conditional expression is constant
> mapsymbol.c(839) : warning C4127: conditional expression is constant
> mapsymbol.c(840) : warning C4127: conditional expression is constant
> mapsymbol.c(855) : warning C4127: conditional expression is constant
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> 9.0\VC\BIN\cl.EXE"'
> : return code '0x2'
> Stop.
> ***********
>
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org <javascript:;>
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20120507/8421b4bd/attachment.html


More information about the mapserver-dev mailing list