hey i just wanted to enquire about the gcc compiler that as i am a beginner at these things and i wanted to learn more.....actually the problem is that i cannot find any inclusion files on my home folder or any file system....this is the problem
savitra@savitra-laptop:~/programs$ cat savvy.c #include <cstdio> int main() { int a=0,b=9,c=7; printf("%d %d %d",a,b,c); return 0; } savitra@savitra-laptop:~/programs$ gcc -o savvy savvy.c savvy.c:1:18: error: cstdio: No such file or directory savvy.c: In function 'main': savvy.c:4: warning: incompatible implicit declaration of built-in function 'printf'
for which i tried using geany compiler that is also giving the same result.....
Hi
while this is not a general C/C++ list, just to get you started
On Tue, Mar 25, 2008 at 12:16 PM, Savitra Sapre savitrasapre@gmail.com wrote:
savitra@savitra-laptop:~/programs$ gcc -o savvy savvy.c savvy.c:1:18: error: cstdio: No such file or directory savvy.c: In function 'main': savvy.c:4: warning: incompatible implicit declaration of built-in function 'printf'
You should use: #include <stdio.h> instead of <cstdio>
Cheers
kilo
On Tue, 25 Mar 2008 12:59:20 +0100 kilo kg_kilo@freemail.hu wrote:
Hi
while this is not a general C/C++ list, just to get you started
On Tue, Mar 25, 2008 at 12:16 PM, Savitra Sapre savitrasapre@gmail.com wrote:
savitra@savitra-laptop:~/programs$ gcc -o savvy savvy.c savvy.c:1:18: error: cstdio: No such file or directory savvy.c: In function 'main': savvy.c:4: warning: incompatible implicit declaration of built-in function 'printf'
You should use: #include <stdio.h> instead of <cstdio>
Indeed. If C++ code is wanted you have to use g++ not gcc, and rename the file savvy.cxx (or another C++ extension).
Regards, Nick