[mapserver-dev] mapsymbol.c errors with master/git
Jeff McKenna
jmckenna at gatewaygeomatics.com
Mon May 7 14:55:08 EDT 2012
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.
***********
More information about the mapserver-dev
mailing list