newbie gcc question
Matthew Majka
mmajka@cs5.dasd.honeywell.com
Thu Oct 14 09:58:00 GMT 1999
Johan Nilson wrote:
>
> On Wed, 13 Oct 1999 17:05:41 -0600, Matthew Majka <mmajka@cs5.dasd.honeywell.com> wrote:
>
> >Maggie Owens wrote:
> >>
> >> I have a little experience writing C++ in the dos and windows
> >> environment. Now I am trying to write a c program and compile it in gcc
> >> on a unix system. As a test, I wrote the traditional hello, world
> >> program:
> >> #include <stdio.h>
> >> void main()
> >> {
> >> printf("Hello, world!");
> >> }
> >>
> >> I compiled it using:
> >> gcc helloworld.c
> >
> >gcc helloworld.c -o helloworld
> >./helloworld
> >
> >That should do it. However, ./a,out should have done it also.
>
> or simply renaming a.out to a.exe, and then running it
He's on UNIX, not Windoze.
More information about the Gcc-help
mailing list