C programs
Paul
pfortin at gmail.com
Tue Feb 26 15:52:02 UTC 2008
On Tue, Feb 26, 2008 at 10:46 AM, Karl Larsen <k5di at zianet.com> wrote:
> I write in ANSI C and the gcc on Ubuntu 1.7 doesn't like it. Here is
> the source code:
>
> /* converts 2 fathoms to feet */
> #include <stdio.h>
> int main (void)
> {
> int feet, fathoms;
>
> fathoms = 2;
> feet = 6 * fathoms;
> printf("There are %d feet in %d fathems!\n", feet, fathoms);
> return 0;
> }
>
> When I run gcc it errors out with:
>
> karl at karl-desktop:~/Cprog$ gcc fathm_ft.c
> fathm_ft.c:2:19: error: stdio.h: No such file or directory
>
> Now it can't find stdio.h and why is that?
>
> I thought stdio.h is a standard C header.
>
> Karl
>
Try a C programming mailing list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080226/17d3cd3b/attachment.html>
More information about the ubuntu-users
mailing list