This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Redefinition of symbol ???
- From: Bruce Korb <Bruce dot Korb at gmail dot com>
- To: Bruce Korb <Bruce dot Korb at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 02 Jun 2007 12:34:35 -0700
- Subject: Re: Redefinition of symbol ???
- References: <4661C502.3010709@gmail.com>
Never mind. Thank you anyway. This is not a GCC message as I had thought.
Under the covers somewhere, a lint program got fired up. The lint
program is not good enough. Thanks anyway.
- Bruce
Bruce Korb wrote:
> 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.
>