This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Redefinition of symbol ???


I must be missing something.  I'm trying to forward declare some
static data arrays, but I'm getting this:

> static type_info_t const type_info_table[257] = {
> evlib-tables.c  169  Error 31: Redefinition of symbol 'type_info_table' compare
>     with line 21, file evlib-tables.h

the "evlib-tables.c" (as you see) contains the initializer and
the .h file does not:

> static type_info_t const type_info_table[257];

So, I've compared 'em and do not understand the difference.
I did not find anything obvious in bugzilla (fixed or otherwise).

> $ /usr/bin/gcc --version | head -1
> gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)

So, is it me or the compiler?  :)  Thank you.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]