Re: [OT] gcc & g++ compiler
Re: [OT] gcc & g++ compiler
- Subject: Re: [OT] gcc & g++ compiler
- From: Alvin Koh <email@hidden>
- Date: Tue, 14 Mar 2006 09:09:31 +0800
Brian Dent wrote:
Know this is way off topic
but does anyone have experience using gcc from the terminal to compile
c programs?
I can get it to create the a.out file
but i can't figure out how to get it to run that file
or is there a better, preferably free, program for compiling a usable
executable (both c and c++)
several ways to do this.
1. gcc somefile.c -> this creates an executable 'a.out' which you run by
typing './a.out'
2. gcc -o somefile somefile.c -> this creates an executable 'somefile'
which you run by typing './somefile'
3. make somefile -> this automatically does method 2.
Rgds
Alvin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden