static declaration of foo follows non-static declaration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux