[Geany] Query regarding gcc
Nick Treleaven
nick.treleaven at xxxxx
Wed Mar 26 13:00:10 UTC 2008
On Tue, 25 Mar 2008 12:59:20 +0100
kilo <kg_kilo at 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 at gmail.com> wrote:
> >
> > savitra at 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
More information about the Users
mailing list