如何在Xcode 4中设置一个C ++项目? [英] How do I set up a C++ project in Xcode 4?
本文介绍了如何在Xcode 4中设置一个C ++项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这可能有一个很明显的答案,但我似乎找不到它。我试图使用Xcode 4编程与C + +,我想创建一个项目,构建,并通过Xcode 4运行它像其他语言一样。我的问题是我找不到合适类型的项目来执行此操作。
解决方案
=http://www.youtube.com/watch?v=Ey8LK7P1K94> http://www.youtube.com/watch?v=Ey8LK7P1K94 在2:30他创建了一个C ++项目。
或尝试:
- 打开XCode。
- 文件/新项目...
- 在新建项目助手中,展开命令行实用程序组。
- C ++工具
- 点击下一步
- 输入项目名称和目录,然后点击完成。
- 按Cmd-Shift-R打开控制台窗口。
- 点击Build and Go工具栏按钮。
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.
解决方案Check this out : http://www.youtube.com/watch?v=Ey8LK7P1K94 at 2:30 he creates a C++ project.
Or try this:
- Open XCode.
- File/New Project...
- In the "New Project" Assistant, expand the "Command Line Utility" group.
- Select "C++ Tool"
- Click "Next"
- Give a project name and directory, then click "Finish".
- Press Cmd-Shift-R to open the Console window. Output will appear there.
- Click the "Build and Go" toolbar button.
这篇关于如何在Xcode 4中设置一个C ++项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文