This is the mail archive of the gcc@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]

Re: incompatible implicit declaration of built-in function 'exit'


On Tuesday 28 March 2006 21:32, Jack Howarth wrote:
>    I am trying to compile some fairly old legacy c code with gcc 4.1
> in FC5 and have been able to eliminate all the compiler warnings save
> one...
>
> warning: incompatible implicit declaration of built-in function 'exit'
>
> ...which is repeated through the compilation of the sources. I can
> google lots of build logs with this warning but haven't been able
> to get any hits on patches or fixes to eliminate the warning. Thanks
> in advance for any hints.

#include <stdlib.h> is by far the best solution.

If you really must disable the warning without fixing your code 
try -fno-builtin-exit.

Paul


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