This is really directed to Mark, although if anyone else can answer, then feel free...
I have added a function to empeg_mixer.c that needs to access a table in hijack.c . The table is of type hijack_db_table_t that is typedef'd in hijack.c
So, I put the following in empeg_mixer.h:
typedef struct hijack_db_table_s {
char *name;
unsigned int dbvalue;
} hijack_db_table_t;
extern const hijack_db_table_t hijack_db_table[25];
but I still get undefined reference errors when linking special.a
By declaring the table as extern in hijack.c as well, everything compiles, links and works, but I get a compiler warning:
hijack.c:411: warning: `hijack_db_table' initialized and declared `extern'
How do I get rid of this warning?