This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
static declaration of foo follows non-static declaration
- From: <Dhiraj dot Nilange at iflexsolutions dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 11 Jun 2007 16:35:44 +0530
- Subject: static declaration of foo follows non-static declaration
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!
Thanks,
-Dhiraj