bgamez23 - Oct 5, 2013 13:24
i got this problem right after i change the #define PACKETVER 20111122 in mmo.h
changing the default packetver will cause the error. but after editing the
[code=:0]
// Client support for experimental RagexeRE UI present in 2012-04-10 and 2012-04-18
#ifdef PACKETVER_RE
#if (PACKETVER == 20111122) || (PACKETVER == 20120418)
#define PARTY_RECRUIT
#endif
#endif
[/code]
into[code=:0]
// Client support for experimental RagexeRE UI present in 2012-04-10 and 2012-04-18
#ifdef PACKETVER_RE
#if (PACKETVER == 20111122)
#define PARTY_RECRUIT
#endif
#endif
[/code]
the compile error will not appear.
but there is a similar report on this but not same report explanation.
[url="http://herc.ws/board/tracker/issue-7744-compiler-error-on-hpm-hooking-after-undefined-packetver-re/"]http://herc.ws/board/tracker/issue-7744-compiler-error-on-hpm-hooking-after-undefined-packetver-re/[/url]
[code=:0]
Error 1 error C2039: 'PartyBookingVolunteerInfo' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.Hooks.inc 14894 1 plugin-HPMHooking
Error 2 error C2039: 'PartyBookingRefuseVolunteer' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.Hooks.inc 14919 1 plugin-HPMHooking
Error 3 error C2039: 'PartyBookingCancelVolunteer' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.Hooks.inc 14944 1 plugin-HPMHooking
Error 4 error C2039: 'PartyBookingAddFilteringList' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.Hooks.inc 14969 1 plugin-HPMHooking
Error 5 error C2039: 'PartyBookingSubFilteringList' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.Hooks.inc 14994 1 plugin-HPMHooking
Error 6 error C2039: 'pPartyBookingAddFilter' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.Hooks.inc 21246 1 plugin-HPMHooking
Error 7 error C2039: 'pPartyBookingSubFilter' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.Hooks.inc 21271 1 plugin-HPMHooking
Error 8 error C2039: 'pPartyBookingReqVolunteer' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.Hooks.inc 21296 1 plugin-HPMHooking
Error 9 error C2039: 'pPartyBookingRefuseVolunteer' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.Hooks.inc 21321 1 plugin-HPMHooking
Error 10 error C2039: 'pPartyBookingCancelVolunteer' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.Hooks.inc 21346 1 plugin-HPMHooking
Warning 11 warning C4047: 'function' : 'short' differs in levels of indirection from 'const char *' \src\plugins\HPMHooking\HPMHooking.Hooks.inc 43389 1 plugin-HPMHooking
Warning 12 warning C4024: 'function through pointer' : different types for formal and actual parameter 3 \src\plugins\HPMHooking\HPMHooking.Hooks.inc 43389 1 plugin-HPMHooking
Error 13 error C2198: 'function through pointer' : too few arguments for call \src\plugins\HPMHooking\HPMHooking.Hooks.inc 43389 1 plugin-HPMHooking
Warning 14 warning C4090: 'function' : different 'const' qualifiers \src\plugins\HPMHooking\HPMHooking.Hooks.inc 43414 1 plugin-HPMHooking
Warning 15 warning C4244: 'function' : conversion from 'unsigned long' to 'short', possible loss of data \src\plugins\HPMHooking\HPMHooking.Hooks.inc 43439 1 plugin-HPMHooking
Error 16 error C2198: 'function through pointer' : too few arguments for call \src\plugins\HPMHooking\HPMHooking.Hooks.inc 43439 1 plugin-HPMHooking
Error 17 error C2039: 'PartyBookingVolunteerInfo' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 585 1 plugin-HPMHooking
Warning 18 warning C4047: 'initializing' : 'void *' differs in levels of indirection from 'int' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 585 1 plugin-HPMHooking
Error 19 error C2039: 'PartyBookingRefuseVolunteer' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 586 1 plugin-HPMHooking
Warning 20 warning C4047: 'initializing' : 'void *' differs in levels of indirection from 'int' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 586 1 plugin-HPMHooking
Error 21 error C2039: 'PartyBookingCancelVolunteer' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 587 1 plugin-HPMHooking
Warning 22 warning C4047: 'initializing' : 'void *' differs in levels of indirection from 'int' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 587 1 plugin-HPMHooking
Error 23 error C2039: 'PartyBookingAddFilteringList' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 588 1 plugin-HPMHooking
Warning 24 warning C4047: 'initializing' : 'void *' differs in levels of indirection from 'int' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 588 1 plugin-HPMHooking
Error 25 error C2039: 'PartyBookingSubFilteringList' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 589 1 plugin-HPMHooking
Warning 26 warning C4047: 'initializing' : 'void *' differs in levels of indirection from 'int' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 589 1 plugin-HPMHooking
Error 27 error C2039: 'pPartyBookingAddFilter' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 839 1 plugin-HPMHooking
Warning 28 warning C4047: 'initializing' : 'void *' differs in levels of indirection from 'int' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 839 1 plugin-HPMHooking
Error 29 error C2039: 'pPartyBookingSubFilter' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 840 1 plugin-HPMHooking
Warning 30 warning C4047: 'initializing' : 'void *' differs in levels of indirection from 'int' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 840 1 plugin-HPMHooking
Error 31 error C2039: 'pPartyBookingReqVolunteer' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 841 1 plugin-HPMHooking
Warning 32 warning C4047: 'initializing' : 'void *' differs in levels of indirection from 'int' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 841 1 plugin-HPMHooking
Error 33 error C2039: 'pPartyBookingRefuseVolunteer' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 842 1 plugin-HPMHooking
Warning 34 warning C4047: 'initializing' : 'void *' differs in levels of indirection from 'int' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 842 1 plugin-HPMHooking
Error 35 error C2039: 'pPartyBookingCancelVolunteer' : is not a member of 'clif_interface' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 843 1 plugin-HPMHooking
Warning 36 warning C4047: 'initializing' : 'void *' differs in levels of indirection from 'int' \src\plugins\HPMHooking\HPMHooking.HookingPoints.inc 843 1 plugin-HPMHooking
[/code]
Haru - Oct 5, 2013 16:20
We need to make sure there are no #ifdef inside any of the interfaces, else the code produced by the HPMHooking generator will fail to compile with different settings.
(duplicate of [url="http://herc.ws/board/tracker/issue-7744-compiler-error-on-hpm-hooking-after-undefined-packetver-re/"]http://herc.ws/board/tracker/issue-7744-compiler-error-on-hpm-hooking-after-undefined-packetver-re/[/url] )