Compiling error when changing to gcc4.1.1

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

 



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@xxxxxxxx
Phone : 919-660-5003
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[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