• 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
Optimal environment to compile C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Optimal environment to compile C


  • Subject: Optimal environment to compile C
  • From: Vlado Krempl <email@hidden>
  • Date: Mon, 4 Aug 2008 08:17:53 +1000

Hello everyone.

Excuse my greenness, but I am an absolute beginner.
I am starting my uni course soon and am setting up the optimal environment for developing C programs.


My setup is
Mac Pro 2x2.66 Quad Core, Leopard, Xcode 3.0.

I read somewhere online that I had to unpack and install GCC, which I have done.(gcc 4.0)

I have created a new project using "Command Line Utility" then choosing "Standard Tool".

Opened the "main" file and renamed it "hello.c" with the basic code below:

main(){
printf("Hello World\n");
}

Question
1. How do I compile it? (Is it "Build and Go" button?) I get "Failed" when I do this .(with lots of syntax errors)
2. Where do I actually see the output of this file when I do a compile.


Thank you for taking the time to read this and any assistance will be much appreciated.

Cheers,

Vlado Krempl
Sydney, Australia

Just wanted to make sure I was going down the right road

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Optimal environment to compile C
      • From: Helge Gudmundsen <email@hidden>
    • Re: Optimal environment to compile C
      • From: Eric Christiansen <email@hidden>
  • Prev by Date: Re: linking error?
  • Next by Date: Re: Optimal environment to compile C
  • Previous by thread: Re: moving from Xcode 2.5 -> 3.1: problem building a USB kernel driver
  • Next by thread: Re: Optimal environment to compile C
  • Index(es):
    • Date
    • Thread