[Solved] Code Error - weapon_xml.cpp

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
cap601
Merchant
Merchant
Posts: 56
Joined: Wed Jul 18, 2007 3:28 pm

[Solved] Code Error - weapon_xml.cpp

Post by cap601 »

On trying to compile revision 12169 I get the following error:

Code: Select all

src/cmd/weapon_xml.cpp:348:1: error: pasting ")" and "32" does not give a valid preprocessing token
src/cmd/weapon_xml.cpp: In function ‘void BeamXML::beginElement(void*, const char*, const char**)’:
src/cmd/weapon_xml.cpp:348: error: expected `)' before numeric constant
src/cmd/weapon_xml.cpp:355: error: expected `)' before ‘break’
src/cmd/weapon_xml.cpp:355: error: expected `)' before ‘;’ token
src/cmd/weapon_xml.cpp:355: error: expected `)' before ‘;’ token
src/cmd/weapon_xml.cpp:355: error: expected `)' before ‘;’ token
make[1]: *** [src/cmd/weapon_xml.o] Error 1
I'm not sure exactly what the problem is but it seems to be related to the macros defined on lines 228 and 229 on the same file.
Last edited by cap601 on Tue Apr 22, 2008 8:47 pm, edited 3 times in total.
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

It's fixed in 12170--There was one two many sets of parens... and newer versions of gcc don't work with that.
cap601
Merchant
Merchant
Posts: 56
Joined: Wed Jul 18, 2007 3:28 pm

Post by cap601 »

Just posting to confirm the fix. Thanks for the fast response.
Post Reply