Jump to content
  • 0
anjasoleil0

Compile error coming from HPMHooking.c and HPMHooking.H

Question

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)
[HPMHooking.c]
Warning 5 warning C4034: sizeof returns 0  (line 185)

 

 

 

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

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hey dastgir! Long time no see :)

 

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?

Share this post


Link to post
Share on other sites
  • 0

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)

 

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...

×
×
  • Create New...

Important Information

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