This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compiling error when changing to gcc4.1.1


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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]