Jump to content
  • 0
Sign in to follow this  
Jerahya

Error Compiling VS2010

Question

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.

Edited by Jerahya

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I've already downloaded VS2012 and still get the same error.

 

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

 

Edited by Jerahya

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.