Article View: gnu.gcc.help
Article #52196Re: Unclear GCC Warning: Implicit Declaration !?
From: Markus Lautenbacher
Date: Mon, 18 Jan 1993 14:35
Date: Mon, 18 Jan 1993 14:35
29 lines
1994 bytes
1994 bytes
mcastle@cs.umr.edu (Michael R Castle) writes:
>prototype there either). If gcc is installed to use the default
>include files and libraries, it's quite possible that the orginal stdio.h
>file didn't have a prototype for printf(). Should be fairly easy to
>grep the file looking for it.
Sorry, but I should have mentioned that. Of course I did a "make
install-fixincludes". However, as far as I understand, this "make" then
uses the original Sun includes to build the gcc includes. Since I
couldn't find a declaration for printf() in the Sun stuff it probably
can't show up in the corresponding gcc includes.
To make sure, I cross-checked for printf() in the original and gcc
stdio.h under ULTRIX and there was a declaration for printf() in both
of them !
Does this mean that gcc inherits the weaknesses of the underlying OS ?
I thought gcc is a fully selfcontained ANSI C compiler which then
should not suffer from such obstacles. Where did I miss the point ?
Regards,
MARKUS
--
MARKUS E. LAUTENBACHER, | phone: +49/89/3209-2387
Technical University Munich, | fax: +49/89/32092296
Physics Dept.-Theo. Physics T31,| Internet:
D-8046 Garching, FRG. | lauten@feynman.t30.physik.tu-muenchen.de
Technical Details
Message-ID:
<lauten.727367745@Physik.TU-Muenchen.DE>Path:
arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!informatik.tu-muenchen.de!lrz-muenchen.de!lautenReferences:
<lauten.727351645@Physik.TU-Muenchen.DE> <1993Jan18.114443.4048@umr.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,37e0aabd747ee6ab X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-01-19 02:00:53 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!informatik.tu-muenchen.de!lrz-muenchen.de!lauten From: lauten@Physik.TU-Muenchen.DE (Markus Lautenbacher) Subject: Re: Unclear GCC Warning: Implicit Declaration !? Message-ID: <lauten.727367745@Physik.TU-Muenchen.DE> Keywords: printf implicit declaration Sender: news@news.lrz-muenchen.de (Mr. News) Organization: Leibniz-Rechenzentrum, Muenchen (Germany) References: <lauten.727351645@Physik.TU-Muenchen.DE> <1993Jan18.114443.4048@umr.edu> Date: Mon, 18 Jan 1993 14:35:45 GMT Lines: 29