Re: Question about gcc-4.4.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/31/2010 10:15 AM, Pavel V Samsonov wrote:
> Good day!
> I use gcc-4.4.4 to compile C code. When I use glibc functions and miss
> include headers, gcc still compile code. For example:
> 
> 
> /*#inclide <stdio.h>*/
> int main()
> {
> 	printf("printf");
> 	return 0;
> }
> 
> This mean that gcc not verify presence of function "printf" before
> linking stage?

That's not what happens to me.  I get:

 $ gcc t.c
t.c: In function 'main':
t.c:4: warning: incompatible implicit declaration of built-in function 'printf'

Andrew.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux