- 37
- Posts
- 1
- Years
- Seen Apr 6, 2025
I tried to compile my latest changes (using msys2) and I keep getting this error:
I haven't even touched that file, but here it is up to the error line:
I have no idea what could be causing the problem, how to figure out what the problem is, or how to fix it. Please help!
tools/agbcc/bin/agbcc.exe <flags> -o build/firered/src/cereader_tool.o src/cereader_tool.c
src/cereader_tool.c:11: size of array `EReaderTrainerTowerSetFreeSpace' is negative
make: *** [Makefile:302: build/firered/src/cereader_tool.o] Error 1
make: *** Deleting file 'build/firered/src/cereader_tool.o'
I haven't even touched that file, but here it is up to the error line:
C-like:
#include "global.h"
#include "gflib.h"
#include "util.h"
#include "save.h"
#include "cereader_tool.h"
#define SEC30_SIZE (offsetof(struct EReaderTrainerTowerSet, floors[4]))
#define SEC31_SIZE (sizeof(struct EReaderTrainerTowerSet) - SEC30_SIZE)
// The trainer tower data exceeds SECTOR_DATA_SIZE. They're allowed to use the full save sector up to the counter field.
STATIC_ASSERT(SEC30_SIZE + SEC31_SIZE <= SECTOR_COUNTER_OFFSET * 2, EReaderTrainerTowerSetFreeSpace);
I have no idea what could be causing the problem, how to figure out what the problem is, or how to fix it. Please help!