From mboxrd@z Thu Jan 1 00:00:00 1970 From: johan@envi.se (Johan Nilson) To: help-gcc@gnu.org Subject: Re: newbie gcc question Date: Thu, 14 Oct 1999 00:05:00 -0000 Message-id: <38057e33.1172994837@news.algonet.se> References: <7u31n5$f7m$1@nnrp1.deja.com> <38051045.BEFBC1B1@cs5.dasd.honeywell.com> X-SW-Source: 1999-10/msg00232.html On Wed, 13 Oct 1999 17:05:41 -0600, Matthew Majka 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 >> 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 /Johan From mboxrd@z Thu Jan 1 00:00:00 1970 From: johan@envi.se (Johan Nilson) To: help-gcc@gnu.org Subject: Re: newbie gcc question Date: Sun, 31 Oct 1999 13:57:00 -0000 Message-ID: <38057e33.1172994837@news.algonet.se> References: <7u31n5$f7m$1@nnrp1.deja.com> <38051045.BEFBC1B1@cs5.dasd.honeywell.com> X-SW-Source: 1999-10n/msg00232.html Message-ID: <19991031135700.SpjnOmSIo6Dqjbuc3GZRRARrKE9T46AiZ5bN7zD0BlU@z> On Wed, 13 Oct 1999 17:05:41 -0600, Matthew Majka 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 >> 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 /Johan