Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using code blocks with mingw as my compiler. I am new to programming. My ques is why does my program run perfectly without the inclusion on stdio.h ? But in some cases, it fails to work. I know that stdio.h contains standard input and output functions :) But i have heard that now a days it is already there in the library and we dont need to write stdio.h......But in SOME CASES(not always) the program fails to compile....To be precise I am getting this error
"" incompatible implicit declaration of built-in function 'printf' [enabled by default] ""
When i add #include<stdio.h> the problem is not there anymore.
Explain this :)
I would also appreciate if you let me know the uses of conio.h preprocessor directive :)
/* thanks in advance :) */
Posted
Updated 20-Sep-14 10:14am
v2

1 solution

You have to include the proper header files (see, for instance, this Stack Overflow question: "warning: incompatible implicit declaration of built-in function ‘xyz’"[^]).
If you use the standard I/O functions then you have to include stdio.h.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 20-Sep-14 22:15pm    
5ed.
—SA
CPallini 21-Sep-14 4:01am    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900