After updating Hercules to latest rev.. got this error

Ragnar Lothbrok

New member
Messages
317
Points
0
Age
40
Location
In the Desert or Morocc
Emulator
can anyone help me on this..

Code:
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 
 
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

 
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

 
Using Ubuntu
default_sad.png
Also changed void* to char*
 

Code:
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
 
Last edited by a moderator:
Back
Top