• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [OT] gcc & g++ compiler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >[OT] gcc & g++ compiler (From: Brian Dent <email@hidden>)

  • Prev by Date: Re: Data vs. Resource
  • Next by Date: Re: Extracting text from an Retrospect Log
  • Previous by thread: Re: [OT] gcc & g++ compiler
  • Next by thread: Re: Data vs. Resource
  • Index(es):
    • Date
    • Thread