Article View: gnu.gcc.help
Article #52709Weird warning about printf
From: Daniel C. O'Connor
Date: Tue, 26 May 1992 06:46
Date: Tue, 26 May 1992 06:46
31 lines
1116 bytes
1116 bytes
I have a question. I am running on a Solbourne 500/5E with sunos4.1 and
openwindows 3.0 with gcc-2.1.
Given the following program, foo.c:
#include <stdio.h>
main ()
{
printf("Help\n");
}
and the following compile command:
gcc -L/usr/local/lib/gcc-lib/sun4-os4.1/2.1 -lgcc -Wall -O -ansi foo.c
Why do I get the following warning:
Foo.c: In function `main':
Foo.c:5: warning: implicit declaration of function `printf'
?????????
Any and all help would be greatly appreciated.
Either post a response or email me.
Thanks,
Dan O'Connor
doconnor@apple.com
Technical Details
Message-ID:
<25667@goofy.Apple.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!apple!mumbo.apple.com!apple!apple.com!doconnorShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,cf073805105c4f55,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-05-26 09:39:42 PST Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!apple!mumbo.apple.com!apple!apple.com!doconnor From: doconnor@apple.com (Daniel C. O'Connor) Newsgroups: gnu.gcc.help Subject: Weird warning about printf Message-ID: <25667@goofy.Apple.COM> Date: 26 May 92 06:46:47 GMT Sender: usenet@Apple.COM Distribution: gnu Organization: Apple Computer, Inc Lines: 31