This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: incompatible implicit declaration
- From: Jeffrey Walton <noloader at gmail dot com>
- To: ali hagigat <hagigatali at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 26 Dec 2010 06:49:47 -0500
- Subject: Re: incompatible implicit declaration
- References: <AANLkTi=+SRgxFLJ3Gn8yamjpQacS4rGcXqDzMx2A=xVE@mail.gmail.com>
- Reply-to: noloader at gmail dot com
On Sun, Dec 26, 2010 at 1:58 AM, ali hagigat <hagigatali@gmail.com> wrote:
> Please look at the following program:
>
> main(){
> ? ? ? ?printf("func1= %d\n", func1(10));
> }
>
> /root/tmp3> gcc -c -o prog1.o prog1.c
> prog1.c: In function ‘main’:
> prog1.c:6: warning: incompatible implicit declaration of built-in
> function ‘printf’
> -------------------------------------------------------------------
> Why the declaration of printf is incomplete?
http://www.google.com/#sclient=psy&q=warning:+incompatible+implicit+declaration+of+built-in+function