Compile error coming from HPMHooking.c and HPMHooking.H

anjasoleil0

New member
Messages
77
Points
0
Hi, I'm using the latest git from Hercules as of Nov 7 2014

Here's what I get when I recompile

[HPMHooking.H]
Error    1    error C2016: C requires that a struct or union has at least one (line 8)
Error    2    error C2016: C requires that a struct or union has at least one (line 11)
Error    3    error C2016: C requires that a struct or union has at least one (line 14)
Error    4    error C2059: syntax error : '}' (line 8)
[SIZE=14.6666669845581px][HPMHooking.c][/SIZE]
[SIZE=14.6666669845581px]Warning[/SIZE][SIZE=14.6666669845581px] [/SIZE][SIZE=14.6666669845581px]5[/SIZE][SIZE=14.6666669845581px] [/SIZE][SIZE=14.6666669845581px]warning C4034: sizeof returns 0[/SIZE][SIZE=14.6666669845581px]  [/SIZE][SIZE=14.6666669845581px](line 185)[/SIZE]




Here's my HPMHooking.H

// Copyright © Hercules Dev Team, licensed under GNU GPL.
// See the LICENSE file
//
// NOTE: This file was auto-generated and should never be manually edited,
//       as it will get overwritten.
 
struct {
} list;
 
struct {
} count;
 
struct {
} source;


and the HPMHooking.c (lines 183 to 207)

void HPM_HP_load(void) {
#include HPM_POINTS_INCLUDE
int i, len = ARRAYLENGTH(HookingPoints), idx = 0;

memset(&HPMHooks,0,sizeof(struct HPMHooksCore));

hp_db = strdb_alloc(DB_OPT_BASE|DB_OPT_DUP_KEY|DB_OPT_RELEASE_DATA, HookingPointsLenMax);

for(i = 0; i < len; i++) {
struct HookingPointData *hpd = NULL;

CREATE(hpd, struct HookingPointData, 1);

memcpy(hpd, &HookingPoints, sizeof(struct HookingPointData));

hpd->idx = idx;
idx += 2;

strdb_put(hp_db, HookingPoints.name, hpd);

HPMHooks.data.total++;
}

#include HPM_SOURCES_INCLUDE
}
 

 

 

Any thoughts? Thanks in advance!

 

-Anjo

 
login interface to HPM is incomplete, as Haru finishes reviewing the PR and merge it to Hercules, this error will be gone.

 
[SIZE=14.6666669845581px]Hey dastgir! Long time no see
default_smile.png
[/SIZE]

login interface to HPM is incomplete, as Haru finishes reviewing the PR and merge it to Hercules, this error will be gone.
I see! Thanks for the reply, but I gotta ask, should I just ignore this error? or should I wait for them to fix it before I get my server hosted?

 
If you using plugins, error must be fixed before start production server.

If you not using plugins, dont care. Server simply must just works, if it works then all ok. (works i mean you can connect to game and play)

 
Back
Top