K
kj
Hi. I'm trying to compile some software from source, and I'm
getting an error I can't figure out. The error in question is
key_events.h:38: field `id' has incomplete type
and the lines corresponding to the error are:
struct kb_event_id_s
{
char name[16];
int number;
};
typedef struct kb_event_id_s kb_event_id_t;
struct kb_event_map_s {
char prefix[8];
const kb_event_id_t id[];
};
typedef struct kb_event_map_s kb_event_map_t;
I can't spot the error. Can someone give me a hand?
Thanks!
kj
getting an error I can't figure out. The error in question is
key_events.h:38: field `id' has incomplete type
and the lines corresponding to the error are:
struct kb_event_id_s
{
char name[16];
int number;
};
typedef struct kb_event_id_s kb_event_id_t;
struct kb_event_map_s {
char prefix[8];
const kb_event_id_t id[];
};
typedef struct kb_event_map_s kb_event_map_t;
I can't spot the error. Can someone give me a hand?
Thanks!
kj