This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Redefinition of symbol ???
- From: Bruce Korb <Bruce dot Korb at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 02 Jun 2007 12:29:06 -0700
- Subject: 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.