This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: static declaration of foo follows non-static declaration
- From: Andrew Haley <aph-gcc at littlepinkcloud dot COM>
- To: <Dhiraj dot Nilange at iflexsolutions dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 11 Jun 2007 12:20:51 +0100
- Subject: Re: static declaration of foo follows non-static declaration
- References: <34C93EFE33190745869639BBB18AE4A6966896@BLR-MSG-01.i-flex.com>
Dhiraj.Nilange@iflexsolutions.com writes:
>
> Hi,
>
> During gcc compilation of C code I am getting these strange errors
> (compile time):-
>
>
> error: static declaration of foo follows non-static declaration
>
> error: previous implicit declaration of foo was here
>
>
> foo is some function here. These errors are surprising, because there is
> only one definition of the function foo. Moreover this code perflectly
> gets compiled using IBM's xlr_c and HP's aCC. So I guess this is gcc
> specific issue. Please help!
OK. Please show us a small self-contained example of this problem.
Andrew.