I have Some errors, And i don't understand how to compile include files and C/C ++ Compile
Can you help please?
In file included from eBG_common.c:2:0:
eBG_common.h:74:1: error: unknown type name ‘bool’
bool debug_mode = false;
^
eBG_common.h:74:19: error: ‘false’ undeclared here (not in a function)
bool debug_mode = false;
^
eBG_common.h:497:12: error: ‘NAME_LENGTH’ undeclared here (not in a function)
char name[NAME_LENGTH]; ///< Name of NPC
^
eBG_common.h:502:2: error: unknown type name ‘bool’
bool npc_or_var; ///< (Player or NPC), true = npc, false = player variable
^
eBG_common.h:533:2: error: unknown type name ‘uint64’
uint64 max_damage; ///< MaxDamage in 1 Hit
^
eBG_common.h:534:2: error: unknown type name ‘uint64’
uint64 damage; ///< Total Damage Dealt
^
eBG_common.h:535:2: error: unknown type name ‘uint64’
uint64 damage_received; ///< Total Damage Received
^
eBG_common.h:536:2: error: unknown type name ‘uint64’
uint64 boss_damage; ///< Damage to MvP
^
eBG_common.h:545:2: error: unknown type name ‘uint64’
uint64 healing; ///< Total Healing Done to TeamMate
^
eBG_common.h:546:2: error: unknown type name ‘uint64’
uint64 healing_fail; ///< Total Healing Done to Enemy
^
eBG_common.h:612:2: error: unknown type name ‘uint64’
uint64 boss_dmg; ///< Total Damage Dealt to Boss
^
eBG_common.h:631:2: error: unknown type name ‘uint64’
uint64 emperium_dmg; ///< Total Damage Dealt to Emperium
^
eBG_common.h:632:2: error: unknown type name ‘uint64’
uint64 barricade_dmg; ///< Total Damage Dealt to Barricade
^
eBG_common.h:633:2: error: unknown type name ‘uint64’
uint64 guardian_dmg; ///< Total Damage Dealt to Guardian
^
eBG_common.h:634:2: error: unknown type name ‘uint64’
uint64 gstone_dmg; ///< Total Damage Dealt to Guardian Stone
^
eBG_common.h:688:3: error: unknown type name ‘bool’
bool match; ///< Is this Ranked Match?
^
eBG_common.h:690:2: error: unknown type name ‘bool’
bool eBG; ///< Participated in ExtendedBG?
^
eBG_common.h:691:2: error: unknown type name ‘bool’
bool leader; ///< Player is Leader
^
eBG_common.h:693:2: error: unknown type name ‘bool’
bool ignore; ///< Ignore BG Announcements
^
eBG_common.h:694:2: error: unknown type name ‘int64’
int64 save_flag; ///< Saving Flag (enum bg_save_flag)
^
eBG_common.h:696:2: error: unknown type name ‘uint16’
uint16 skill_id; ///< SkillID Used
^
eBG_common.h:783:1: error: unknown type name ‘uint16’
uint16 GetWord(uint32 val, int idx);
^
eBG_common.h:783:16: error: unknown type name ‘uint32’
uint16 GetWord(uint32 val, int idx);
^
eBG_common.h:784:1: error: unknown type name ‘uint16’
uint16 MakeWord(uint8 byte0, uint8 byte1);
^
eBG_common.h:784:17: error: unknown type name ‘uint8’
uint16 MakeWord(uint8 byte0, uint8 byte1);
^
eBG_common.h:784:30: error: unknown type name ‘uint8’
uint16 MakeWord(uint8 byte0, uint8 byte1);
^
eBG_common.h:785:1: error: unknown type name ‘uint32’
uint32 MakeDWord(uint16 word0, uint16 word1);
^
eBG_common.h:785:18: error: unknown type name ‘uint16’
uint32 MakeDWord(uint16 word0, uint16 word1);
^
eBG_common.h:785:32: error: unknown type name ‘uint16’
uint32 MakeDWord(uint16 word0, uint16 word1);
^
eBG_common.h:787:69: error: unknown type name ‘bool’
void *bg_get_variable_common(struct ebg_save_data *esdb, int type, bool create, int64 *save_flag, int is_bg);
^
eBG_common.h:787:82: error: unknown type name ‘int64’
void *bg_get_variable_common(struct ebg_save_data *esdb, int type, bool create, int64 *save_flag, int is_bg);
^
eBG_common.h:791:55: error: unknown type name ‘int64’
void set_ebg_buffer(unsigned char *buf, int *offset_, int64 *type, struct ebg_save_data *esdb);
^
In file included from eBG_common.c:2:0:
eBG_common.h:807:102: error: unknown type name ‘bool’
void bg_load_char_data_sub(struct Sql *sql_handle, struct ebg_save_data *esdb, int char_id, int fd, bool use_sql, int64 save_type);
^
eBG_common.h:807:116: error: unknown type name ‘int64’
void bg_load_char_data_sub(struct Sql *sql_handle, struct ebg_save_data *esdb, int char_id, int fd, bool use_sql, int64 save_type);
^
eBG_common.h:808:113: error: unknown type name ‘int64’
void bg_save_common(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type);
^
eBG_common.h:809:113: error: unknown type name ‘int64’
void bg_save_leader(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type);
^
eBG_common.h:810:110: error: unknown type name ‘int64’
void bg_save_ctf(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type);
^
eBG_common.h:811:111: error: unknown type name ‘int64’
void bg_save_boss(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type);
^
eBG_common.h:812:109: error: unknown type name ‘int64’
void bg_save_ti(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type);
^
eBG_common.h:813:110: error: unknown type name ‘int64’
void bg_save_eos(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type);
^
eBG_common.h:814:110: error: unknown type name ‘int64’
void bg_save_tdm(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type);
^
eBG_common.h:815:109: error: unknown type name ‘int64’
void bg_save_sc(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type);
^
eBG_common.h:816:111: error: unknown type name ‘int64’
void bg_save_conq(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type);
^
eBG_common.h:817:111: error: unknown type name ‘int64’
void bg_save_rush(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type);
^
eBG_common.h:818:110: error: unknown type name ‘int64’
void bg_save_dom(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type);
^
eBG_common.h:819:114: error: unknown type name ‘int64’
void bg_save_ranking(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type);
^
In file included from eBG_common.c:2:0:
eBG_common.h:16:31: error: ‘MAX_FAME_LIST’ undeclared here (not in a function)
#define fame_list_size_bgrank MAX_FAME_LIST
^
eBG_common.h:828:35: note: in expansion of macro ‘fame_list_size_bgrank’
struct fame_list bgrank_fame_list[fame_list_size_bgrank]; ///< Ranked BG Fame List
^
eBG_common.c: In function ‘bg_clear_char_data’:
eBG_common.c:50:11: error: ‘NULL’ undeclared (first use in this function)
esdb != NULL
^
eBG_common.c:50:11: note: each undeclared identifier is reported only once for each function it appears in
eBG_common.c:61:4: warning: implicit declaration of function ‘aFree’ [-Wimplicit-function-declaration]
FREE_EBG_DATA(esdb, bg, ctf, bgm_status, true)
^
eBG_common.c:61:4: warning: nested extern declaration of ‘aFree’ [-Wnested-externs]
eBG_common.c:61:45: error: ‘true’ undeclared (first use in this function)
FREE_EBG_DATA(esdb, bg, ctf, bgm_status, true)
^
eBG_common.c:32:9: note: in definition of macro ‘FREE_EBG_DATA’
if (free) { \
^
eBG_common.c: In function ‘ebg_char_set_bgm_status_as_buf’:
eBG_common.c:155:20: error: ‘NULL’ undeclared (first use in this function)
if (bgm_status != NULL) {
^
eBG_common.c:156:3: warning: implicit declaration of function ‘WBUFL’ [-Wimplicit-function-declaration]
WBUFL(buf, *offset+0) = bgm_status->win;
^
eBG_common.c:156:3: warning: nested extern declaration of ‘WBUFL’ [-Wnested-externs]
eBG_common.c:156:25: error: lvalue required as left operand of assignment
WBUFL(buf, *offset+0) = bgm_status->win;
^
eBG_common.c:157:25: error: lvalue required as left operand of assignment
WBUFL(buf, *offset+4) = bgm_status->loss;
^
eBG_common.c:159:26: error: lvalue required as left operand of assignment
WBUFL(buf, *offset+8) = bgm_status->tie;
^
eBG_common.c:162:25: error: lvalue required as left operand of assignment
WBUFL(buf, *offset+0) = 0;
^
eBG_common.c:163:25: error: lvalue required as left operand of assignment
WBUFL(buf, *offset+4) = 0;
^
eBG_common.c:165:26: error: lvalue required as left operand of assignment
WBUFL(buf, *offset+8) = 0;
^
eBG_common.c: At top level:
eBG_common.c:180:55: error: unknown type name ‘int64’
void set_ebg_buffer(unsigned char *buf, int *offset_, int64 *type, struct ebg_save_data *esdb)
^
eBG_common.c:387:1: error: unknown type name ‘uint16’
uint16 GetWord(uint32 val, int idx)
^
eBG_common.c:387:16: error: unknown type name ‘uint32’
uint16 GetWord(uint32 val, int idx)
^
eBG_common.c:407:1: error: unknown type name ‘uint16’
uint16 MakeWord(uint8 byte0, uint8 byte1)
^
eBG_common.c:407:17: error: unknown type name ‘uint8’
uint16 MakeWord(uint8 byte0, uint8 byte1)
^
eBG_common.c:407:30: error: unknown type name ‘uint8’
uint16 MakeWord(uint8 byte0, uint8 byte1)
^
eBG_common.c:417:1: error: unknown type name ‘uint32’
uint32 MakeDWord(uint16 word0, uint16 word1)
^
eBG_common.c:417:18: error: unknown type name ‘uint16’
uint32 MakeDWord(uint16 word0, uint16 word1)
^
eBG_common.c:417:32: error: unknown type name ‘uint16’
uint32 MakeDWord(uint16 word0, uint16 word1)
^
eBG_common.c:436:68: error: unknown type name ‘bool’
void *bg_get_variable_common(struct ebg_save_data *esdb, int type, bool create, int64 *save_flag, int is_bg)
^
eBG_common.c:436:81: error: unknown type name ‘int64’
void *bg_get_variable_common(struct ebg_save_data *esdb, int type, bool create, int64 *save_flag, int is_bg)
^
eBG_common.c:962:32: warning: ‘struct Sql’ declared inside parameter list
void ebg_free_sql_query(struct Sql *sql_handle)
^
eBG_common.c:962:32: warning: its scope is only this definition or declaration, which is probably not what you want
eBG_common.c:985:1: error: unknown type name ‘bool’
bool ebg_execute_sql_query(int *temp, int64 *temp64, bool use_sql, bool *save, bool *save_, int64 type, struct Sql *sql_handle, const char *query, int *char_id_offset, int fd)
^
eBG_common.c:985:39: error: unknown type name ‘int64’
bool ebg_execute_sql_query(int *temp, int64 *temp64, bool use_sql, bool *save, bool *save_, int64 type, struct Sql *sql_handle, const char *query, int *char_id_offset, int fd)
^
eBG_common.c:985:54: error: unknown type name ‘bool’
bool ebg_execute_sql_query(int *temp, int64 *temp64, bool use_sql, bool *save, bool *save_, int64 type, struct Sql *sql_handle, const char *query, int *char_id_offset, int fd)
^
eBG_common.c:985:68: error: unknown type name ‘bool’
bool ebg_execute_sql_query(int *temp, int64 *temp64, bool use_sql, bool *save, bool *save_, int64 type, struct Sql *sql_handle, const char *query, int *char_id_offset, int fd)
^
eBG_common.c:985:80: error: unknown type name ‘bool’
bool ebg_execute_sql_query(int *temp, int64 *temp64, bool use_sql, bool *save, bool *save_, int64 type, struct Sql *sql_handle, const char *query, int *char_id_offset, int fd)
^
eBG_common.c:985:93: error: unknown type name ‘int64’
bool ebg_execute_sql_query(int *temp, int64 *temp64, bool use_sql, bool *save, bool *save_, int64 type, struct Sql *sql_handle, const char *query, int *char_id_offset, int fd)
^
eBG_common.c:1187:101: error: unknown type name ‘bool’
void bg_load_char_data_sub(struct Sql *sql_handle, struct ebg_save_data *esdb, int char_id, int fd, bool use_sql, int64 save_type)
^
eBG_common.c:1187:115: error: unknown type name ‘int64’
void bg_load_char_data_sub(struct Sql *sql_handle, struct ebg_save_data *esdb, int char_id, int fd, bool use_sql, int64 save_type)
^
eBG_common.c:1750:112: error: unknown type name ‘int64’
void bg_save_common(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type)
^
eBG_common.c:1808:112: error: unknown type name ‘int64’
void bg_save_leader(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type)
^
eBG_common.c:1838:109: error: unknown type name ‘int64’
void bg_save_ctf(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type)
^
eBG_common.c:1863:110: error: unknown type name ‘int64’
void bg_save_boss(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type)
^
eBG_common.c:1884:108: error: unknown type name ‘int64’
void bg_save_ti(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type)
^
eBG_common.c:1905:109: error: unknown type name ‘int64’
void bg_save_eos(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type)
^
eBG_common.c:1926:109: error: unknown type name ‘int64’
void bg_save_tdm(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type)
^
eBG_common.c:1947:108: error: unknown type name ‘int64’
void bg_save_sc(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type)
^
eBG_common.c:1968:110: error: unknown type name ‘int64’
void bg_save_conq(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type)
^
eBG_common.c:1989:110: error: unknown type name ‘int64’
void bg_save_rush(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type)
^
eBG_common.c:2011:109: error: unknown type name ‘int64’
void bg_save_dom(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type)
^
eBG_common.c:2032:113: error: unknown type name ‘int64’
void bg_save_ranking(struct ebg_save_data *esdb, struct Sql *mysql_handle, int char_id, struct sd_p_data *data, int64 save_type)
^
Makefile:105: recipe for target '../../plugins/eBG_common.so' failed