Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set up a C++ project in Xcode 4?

This probably has a really obvious answer, but I can't seem to find it. I am trying to use Xcode 4 to program with C++, and I want to create a project, build, and run it through Xcode 4 like I do for other languages. My problem is that I can't find the right type of project to do this.

like image 424
mrswmmr Avatar asked Jun 08 '11 16:06

mrswmmr


People also ask

How do I create an Objective-C Project in Xcode?

Create a ProjectLaunch Xcode, then click “Create a new Xcode project” in the Welcome to Xcode window or choose File > New > Project. In the sheet that appears, select the target operating system or platform and a template under Application.

Does Xcode work with C?

Not only is Xcode an excellent IDE for iOS and macOS apps in both Swift and Objective-C; it does just as fine a job for regular C and C++ code. This includes all the features we know and love, such as code completion, version control, and all the rest of it. Let's see how to use Xcode 8.3 for C and C++ development.

How do you make a C Project?

From the menu bar, click File > New > Project. In the Select a wizard window, expand C/C++, select C++ Project, and then click Next. In the Create a C++ Project window, in the Project name field, enter a name for the C++ project. From the Project type list, select Makefile Project/Empty Project, and then click Finish.


1 Answers

Check this out : http://www.youtube.com/watch?v=Ey8LK7P1K94 at 2:30 he creates a C++ project.

Or try this:

  1. Open XCode.
  2. File/New Project...
  3. In the "New Project" Assistant, expand the "Command Line Utility" group.
  4. Select "C++ Tool"
  5. Click "Next"
  6. Give a project name and directory, then click "Finish".
  7. Press Cmd-Shift-R to open the Console window. Output will appear there.
  8. Click the "Build and Go" toolbar button.
like image 176
Ricky Bobby Avatar answered Oct 07 '22 13:10

Ricky Bobby