🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52056

Re: SUN OS, stdio.h and implicit declaration warning

#52056
From: Joe Buck
Date: Thu, 25 Feb 1993 04:32
18 lines
1471 bytes
[with  "gcc -g -ansi -Wall ", version 2.3.2]
>I get warnings about implicit declaration of printf etc.
>I looked at the stdio.h file in the "fixed" gcc include
>directory and there's no declaration printf or any of
>the other print functions.  My understanding from reading
>Harbison and Steele is that stdio.h is supposed to declare
>printf, etc.  What's wrong with our installation?

SunOS provides header files that do not have prototypes and that do not
declare many functions.  gcc's "fixincludes" does not create prototypes
for functions; it only repairs things that are broken (macros that violate
the rules of ANSI C; functions returning a different type than ANSI C
requires).

I suppose you could get the Gnu C library if you want to have prototypes
for everything -- it's still fairly new and buggy though.
--
Joe Buck	jbuck@ohm.berkeley.edu
Technical Details
Message-ID: <1mhi57$2q8@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!forney.berkeley.edu!jbuck
References: <TPRAVATA.93Feb24174324@mugu.dseg.ti.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,9ba210e5e5e5350f
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-02-24 20:32:39 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!forney.berkeley.edu!jbuck
From: jbuck@forney.berkeley.edu (Joe Buck)
Newsgroups: gnu.gcc.help
Subject: Re: SUN OS, stdio.h and implicit declaration warning
Date: 25 Feb 1993 04:32:39 GMT
Organization: U. C. Berkeley
Lines: 18
Distribution: gnu
Message-ID: <1mhi57$2q8@agate.berkeley.edu>
References: <TPRAVATA.93Feb24174324@mugu.dseg.ti.com>
NNTP-Posting-Host: forney.berkeley.edu