

To do that, you need to double-click the executable file.

This will compile your program, but I find that it won'tĪctually run it. Let's go ahead and run that sample program-select "Build and Run" button from Include a small sample "hello world" program. You can edit main.cpp, but by default it will Of the prompts and create your new project. Project to "C++ stdc++" if you are using C++ instead of C. Before you leave that screen, make sure to change the "Type" of the Give you a basic command line program that you can use when you're learning to First choose "Application" and then "Command Line Tool". The very simplest thing to do is to create a new project from "File|New XCode has lots of documentation and can walk you through setting up a project. Then you can run XCode from Developer|Applications|XCode.
APPLE DEVELOPER TOOLS GCC INSTALL
Once you've downloaded XCode, you can install it from the disk image. Search for the latest version of XCode (you want something like that looks like "XCode X.Y.Z Developer Tools", for example "XCode 3.2.2 Developer Tools").Click on "Developer Tools" under the "Downloads" sidebar.(Much of the documentation will not be relevant to you when you are just starting to learn C++, and the Apple website itself already makes extensive documentation available.) If you want to download the smaller version of XCode that doesn't include documentation, click on "Developer Downloads".
APPLE DEVELOPER TOOLS GCC FULL
