Results 1 to 3 of 3
i am using UBUNTU....what i write simple multiplication c program and when compiled it i saw the problems like:
mul.c:1:18: error: stdio.h: No such file or directory
mul.c: In function ...
- 08-16-2008 #1Linux User
- Join Date
- Aug 2008
- Location
- Trichy,India
- Posts
- 308
compilation problem
i am using UBUNTU....what i write simple multiplication c program and when compiled it i saw the problems like:
mul.c:1:18: error: stdio.h: No such file or directory
mul.c: In function ‘main’:
mul.c:8: warning: incompatible implicit declaration of built-in function ‘printf’
what to do now...i am new to linux...anyone please help me...
- 08-17-2008 #2Just Joined!
- Join Date
- Jul 2008
- Posts
- 27
i think stdio.h is a librery of windows.
Building C programs on Linux - LinuxQuestions.org
- 08-17-2008 #3
stdio.h is a header for the input/output part of the C library (to which the printf function belongs). If present on your machine, it will be in /usr/include.
All these headers form part of the build-essential package which also includes the C compiler (which you obviously have installed). So I think you have probably quoted the header file name wrongly. Your program should include the line
Code:#include <stdio.h>
"I'm just a little old lady; don't try to dazzle me with jargon!"


Reply With Quote