Jump to content
  • 0
Ragnar Lothbrok

After updating Hercules to latest rev.. got this error

Question

can anyone help me on this..

 

 

2>..srcmapmap.c(6143): error C2036: 'void *' : unknown size2>  mercenary.c2>  mob.c2>  npc.c2>  npc_chat.c2>  party.c2>  path.c2>  pc.c2>  pc_groups.c2>  pet.c2>  quest.c2>  script.c2>  searchstore.c2>  skill.c2>  status.c2>..srcmappc.c(11121): error C2036: 'void *' : unknown size2>  storage.c2>  trade.c2>..srcmapstatus.c(2185): error C2036: 'void *' : unknown size2>..srcmapstatus.c(2187): error C2036: 'void *' : unknown size2>..srcmapstatus.c(2188): error C2036: 'void *' : unknown size2>..srcmapstatus.c(12368): error C2036: 'void *' : unknown size2>  unit.c1>  Finished generating code2>  vending.c2>..srcmapskill.c(18962): error C2036: 'void *' : unknown size2>..srcmapskill.c(19102): error C2036: 'void *' : unknown size 

 

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

What compiler and OS? It's probably fixable by changing 'void *' to 'char *' in the ZEROED_BLOCK_SIZE definition (in cbasetypes.h). If you can confirm it, I'll commit the fix asap

Share this post


Link to post
Share on other sites
  • 0

What compiler and OS? It's probably fixable by changing 'void *' to 'char *' in the ZEROED_BLOCK_SIZE definition (in cbasetypes.h). If you can confirm it, I'll commit the fix asap

 

win 7, VS 2013 and yeah the fix worked

Share this post


Link to post
Share on other sites
  • 0

Using Ubuntu :( Also changed void* to char*
 

make[1]: Entering directory `/root/Desktop/Hercules/src/map'        CC      status.cIn file included from ../common/conf.h:8:0,                 from status.h:9,                 from status.c:8:status.c: In function ‘status_calc_pc_’:../common/../common/cbasetypes.h:425:34: error: ‘struct map_session_data’ has no member named ‘HERC__zeroed_block_BEGIN’ #define ZEROED_BLOCK_POS(x) (&(x)->HERC__zeroed_block_BEGIN)                                  ^status.c:2185:9: note: in expansion of macro ‘ZEROED_BLOCK_POS’  memset(ZEROED_BLOCK_POS(sd), 0, ZEROED_BLOCK_SIZE(sd));         ^../common/../common/cbasetypes.h:426:83: error: ‘struct map_session_data’ has no member named ‘HERC__zeroed_block_BEGIN’ #define ZEROED_BLOCK_SIZE(x) ((char*)&((x)->HERC__zeroed_block_END) - (char*)&((x)->HERC__zeroed_block_BEGIN) + sizeof((x)->HERC__zeroed_block_END))                                                                                   ^status.c:2185:34: note: in expansion of macro ‘ZEROED_BLOCK_SIZE’  memset(ZEROED_BLOCK_POS(sd), 0, ZEROED_BLOCK_SIZE(sd));                                  ^make[1]: *** [obj_sql/status.o] Error 1make[1]: Leaving directory `/root/Desktop/Hercules/src/map'make: *** [map_sql] Error 2
Edited by Hadeszeus

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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