Hey folks, I'm trying to compile Angband using the GCC compiler in Code::Blocks. After adding sqlite3 inside the source file it compiles for awhile until it reaches line 39 in db.c.
static bool stats_make_output_dir(void) {
The build message says:
error: 'true undeclared (first use in this function)
error: 'false' undeclared (first use in this function)
Does anyone know what could be causing these errors?
static bool stats_make_output_dir(void) {
size_t size = strlen(ANGBAND_DIR_USER) + strlen(PATH_SEP) + 6;
ANGBAND_DIR_STATS = mem_alloc(size * sizeof(char));
path_build(ANGBAND_DIR_STATS, size, ANGBAND_DIR_USER, "stats");
ANGBAND_DIR_STATS = mem_alloc(size * sizeof(char));
path_build(ANGBAND_DIR_STATS, size, ANGBAND_DIR_USER, "stats");
if (dir_create(ANGBAND_DIR_STATS)) {
return true;
} else {
return false;
}
}return true;
} else {
return false;
}
The build message says:
error: 'true undeclared (first use in this function)
error: 'false' undeclared (first use in this function)
Does anyone know what could be causing these errors?
Comment