Re: [anjuta-list] Anjuta new user-why is there an error code with this simple C program?
- From: american communist party gmail com
- To: anjuta-list gnome org
- Subject: Re: [anjuta-list] Anjuta new user-why is there an error code with this simple C program?
- Date: Fri, 16 Jul 2010 17:12:30 +0000
Easy. He simply chmod'd +x the source file. Why some one would do that is beyond me, but hey...
On Jul 15, 2010 11:35pm, Johannes Schmid <jhs jsschmid de> wrote:
> Hi!
>
>
>
> >
>
> > #include
>
> > int main(void)
>
> > {
>
> > int dogs;
>
> >
>
> > printf("How many dogs do you have?\n");
>
> > scanf("so you have %d dog(s)!\n", dogs);
>
> > return 0;
>
> > }
>
> >
>
> >
>
> >
>
> > ....../C Programming /project1/ff.c: line 2: `int main(void)'
>
> >
>
>
>
> What you do is running a C file with the shell. Instead, compile it first
>
> and run the created executable afterwards. Wondering how you manged to
>
> make this file executable.
>
>
>
> Regards,
>
> Johannes
>
>
>
> _______________________________________________
>
> anjuta-list mailing list
>
> anjuta-list gnome org
>
> http://mail.gnome.org/mailman/listinfo/anjuta-list
>
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]