* Compiling error when changing to gcc4.1.1
@ 2006-11-28 18:39 Youngjean Jung
2006-11-28 21:40 ` Ian Lance Taylor
0 siblings, 1 reply; 2+ messages in thread
From: Youngjean Jung @ 2006-11-28 18:39 UTC (permalink / raw)
To: gcc-help
Dear gcc-help :
When I used gcc-3.3.3 in compiling my code, I did not have any problem.
Now, when I upgraded the gcc-3.3.3 to gcc-4.1.1, I have
the following compiling error. Do you have any idea how to fix it? I
don't want to change my code because it is very huge. What I want is
that compiling my old code with gcc-4.1.1.
Compiling spallocate.c
cc1: warning: command line option "-Wno-deprecated" is valid for
C++/ObjC++ but not for C
In file included from spallocate.c:73:
spDefs.h:429: warning: conflicting types for built-in function 'malloc'
spDefs.h:429: warning: conflicting types for built-in function 'calloc'
spDefs.h:435: warning: conflicting types for built-in function 'abort'
spallocate.c:373: error: static declaration of 'InitializeElementBlocks'
follows non-static declaration
Thank you very much.
Youngjean.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Youngjean Jung
Postdoctoral Research Associate
Department of Civil and Environmental Engineering
Duke University
Box 90287
Durham, NC 27708-0287
e-mail: youngjean.jung@duke.edu
Phone : 919-660-5003
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Compiling error when changing to gcc4.1.1
2006-11-28 18:39 Compiling error when changing to gcc4.1.1 Youngjean Jung
@ 2006-11-28 21:40 ` Ian Lance Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2006-11-28 21:40 UTC (permalink / raw)
To: Youngjean Jung; +Cc: gcc-help
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-28 21:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-28 18:39 Compiling error when changing to gcc4.1.1 Youngjean Jung
2006-11-28 21:40 ` Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).