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: Built in calls?


On 19-Nov-2002, Phil Edwards <phil@jaj.com> wrote:
> On Mon, Nov 18, 2002 at 11:35:17PM -0800, Matt Young wrote:
> > junk.c;
> > 
> > int main() {
> >    printf("hello\n");
> >    }
> > 
> > 
> > Will compile without errors using 
> > 
> > gcc junk.c
> > 
> > on my SUSE system
> > 
> > yet uses no standard includes.
> > 
> > Point me to the options which allow this.
> 
> -fbuiltin, -fno-builtin

I think the options that the original poster is looking for are
`-Wimplicit-function-declaration' and `-Werror-implicit-function-declaration'.

Matt, you should never use `gcc' without any options.  The default option
settings are for backwards compatibility with very old software and
should never be used when writing new code.  You should always compile
with at least `-Wall'.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.


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