Error Compiling VS2010

Jerahya

New member
Messages
9
Points
0
Hi, I seam to be having trouble compiling herc on windows using VS2010. I cloned the latest source, didn't touch anything else, open Hercules-10.sln then build with release config but it gives the following error.

 
2> atcommand.c2> clif.c2>..srcmapatcommand.c(1533): error C2143: syntax error : missing ';' before 'type'2>..srcmapatcommand.c(1534): error C2065: 'id' : undeclared identifier2>..srcmapatcommand.c(1534): error C2065: 'id' : undeclared identifier2>..srcmapclif.c(3833): error C2143: syntax error : missing ';' before 'type'2>..srcmapclif.c(3834): error C2065: 'tsd' : undeclared identifier2>..srcmapclif.c(3839): error C2065: 'tsd' : undeclared identifier2>..srcmapclif.c(3839): error C2223: left of '->status' must point to struct/union2>..srcmapclif.c(3840): error C2065: 'tsd' : undeclared identifier2>..srcmapclif.c(3840): error C2223: left of '->status' must point to struct/union2>..srcmapclif.c(3862): error C2143: syntax error : missing ';' before 'type'2>..srcmapclif.c(3863): error C2065: 'tsd' : undeclared identifier2>..srcmapclif.c(3867): error C2065: 'tsd' : undeclared identifier2>..srcmapclif.c(3867): error C2223: left of '->status' must point to struct/union2>..srcmapclif.c(3868): error C2065: 'tsd' : undeclared identifier2>..srcmapclif.c(3868): error C2223: left of '->status' must point to struct/union2>..srcmapclif.c(5586): error C2143: syntax error : missing ';' before 'type'2>..srcmapclif.c(5587): error C2143: syntax error : missing ';' before 'type'2>..srcmapclif.c(5589): error C2065: 'buf' : undeclared identifier2>..srcmapclif.c(5590): error C2065: 'buf' : undeclared identifier2>..srcmapclif.c(5590): error C2065: 'lp' : undeclared identifier2>..srcmapclif.c(5592): error C2065: 'buf' : undeclared identifier2>..srcmapclif.c(5594): error C2065: 'buf' : undeclared identifier2>..srcmapclif.c(5595): error C2065: 'buf' : undeclared identifier2>..srcmapclif.c(5595): error C2065: 'lp' : undeclared identifier2>..srcmapclif.c(5596): error C2065: 'buf' : undeclared identifier2>..srcmapclif.c(5596): warning C4022: 'function through pointer' : pointer mismatch for actual parameter 12>..srcmapclif.c(5596): error C2065: 'buf' : undeclared identifier2>..srcmapclif.c(5598): error C2065: 'buf' : undeclared identifier2>..srcmapclif.c(5598): warning C4022: 'function through pointer' : pointer mismatch for actual parameter 12>..srcmapclif.c(5822): error C2143: syntax error : missing ';' before 'type'2>..srcmapclif.c(5828): error C2065: 'ssd' : undeclared identifier2>..srcmapclif.c(5828): error C2065: 'ssd' : undeclared identifier2>..srcmapclif.c(5828): error C2223: left of '->group' must point to struct/union2>..srcmapclif.c(13152): error C2143: syntax error : missing ';' before 'type'2>..srcmapclif.c(13154): error C2065: 't_sd' : undeclared identifier2>..srcmapclif.c(13154): warning C4047: 'function' : 'map_session_data *' differs in levels of indirection from 'int'2>..srcmapclif.c(13154): warning C4024: 'clif_sub_guild_invite' : different types for formal and actual parameter 3
 
I used to compile herc before without any errors but that was a year ago. Is there a way to tell VS to allow declaration of variable in the middle of the statement?

thank!

Edit: I think I found the culprit. It was nullpo_retv() that cause the error in compiling. But this is such a pain. Anyone got a suggestion on how to fix it quick without me grinding the code for a couple of hour just to get me started.

 
Last edited by a moderator:
I've already downloaded VS2012 and still get the same error.

Code:
2> hercules-mastersrcmapatcommand.c(1533): error C2143: syntax error : missing ';' before 'type'2> hercules-mastersrcmapclif.c(3833): error C2143: syntax error : missing ';' before 'type'2> hercules-mastersrcmapatcommand.c(1534): error C2065: 'id' : undeclared identifier2> hercules-mastersrcmapclif.c(3834): error C2065: 'tsd' : undeclared identifier2> hercules-mastersrcmapclif.c(3839): error C2065: 'tsd' : undeclared identifier2> hercules-mastersrcmapclif.c(3839): error C2223: left of '->status' must point to struct/union2> hercules-mastersrcmapclif.c(3840): error C2065: 'tsd' : undeclared identifier2> hercules-mastersrcmapclif.c(3840): error C2223: left of '->status' must point to struct/union2> hercules-mastersrcmapclif.c(3862): error C2143: syntax error : missing ';' before 'type'2> hercules-mastersrcmapclif.c(3863): error C2065: 'tsd' : undeclared identifier2> hercules-mastersrcmapclif.c(3867): error C2065: 'tsd' : undeclared identifier2> hercules-mastersrcmapclif.c(3867): error C2223: left of '->status' must point to struct/union2> hercules-mastersrcmapclif.c(3868): error C2065: 'tsd' : undeclared identifier2> hercules-mastersrcmapclif.c(3868): error C2223: left of '->status' must point to struct/union2> hercules-mastersrcmapclif.c(5586): error C2143: syntax error : missing ';' before 'type'2> hercules-mastersrcmapclif.c(5587): error C2143: syntax error : missing ';' before 'type'2> hercules-mastersrcmapclif.c(5589): error C2065: 'buf' : undeclared identifier2> hercules-mastersrcmapclif.c(5590): error C2065: 'buf' : undeclared identifier2> hercules-mastersrcmapclif.c(5590): error C2065: 'lp' : undeclared identifier2> hercules-mastersrcmapclif.c(5592): error C2065: 'buf' : undeclared identifier2> hercules-mastersrcmapclif.c(5594): error C2065: 'buf' : undeclared identifier2> hercules-mastersrcmapclif.c(5595): error C2065: 'buf' : undeclared identifier2> hercules-mastersrcmapclif.c(5595): error C2065: 'lp' : undeclared identifier2> hercules-mastersrcmapclif.c(5596): error C2065: 'buf' : undeclared identifier2> hercules-mastersrcmapclif.c(5596): warning C4022: 'function through pointer' : pointer mismatch for actual parameter 12> hercules-mastersrcmapclif.c(5598): error C2065: 'buf' : undeclared identifier2> hercules-mastersrcmapclif.c(5598): warning C4022: 'function through pointer' : pointer mismatch for actual parameter 12> hercules-mastersrcmapclif.c(5822): error C2143: syntax error : missing ';' before 'type'2> hercules-mastersrcmapclif.c(5828): error C2065: 'ssd' : undeclared identifier2> hercules-mastersrcmapclif.c(5828): error C2223: left of '->group' must point to struct/union2> hercules-mastersrcmapclif.c(13152): error C2143: syntax error : missing ';' before 'type'2> hercules-mastersrcmapclif.c(13154): error C2065: 't_sd' : undeclared identifier2> hercules-mastersrcmapclif.c(13154): warning C4047: 'function' : 'map_session_data *' differs in levels of indirection from 'int'2> hercules-mastersrcmapclif.c(13154): warning C4024: 'clif_sub_guild_invite' : different types for formal and actual parameter 3
 
Last edited by a moderator:
This is legit, happening to me too after getting the latest repo. 

 
Back
Top