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