This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Compiling error when changing to gcc4.1.1
- From: Ian Lance Taylor <iant at google dot com>
- To: Youngjean Jung <youngjean dot jung at duke dot edu>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 28 Nov 2006 13:40:13 -0800
- Subject: Re: Compiling error when changing to gcc4.1.1
- References: <456C81DA.4070701@duke.edu>
Youngjean Jung <youngjean.jung@duke.edu> writes:
> spallocate.c:373: error: static declaration of
> 'InitializeElementBlocks' follows non-static declaration
I'm sorry. You have to change your code. A non-static declaration of
a function followed by a non-static declaration was never permitted by
the ISO C standard, and gcc now enforces that rule.
Ian