如何在Xcode 4中设置一个C ++项目? [英] How do I set up a C++ project in Xcode 4?

查看:107
本文介绍了如何在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 ++项目。



或尝试:


  1. 打开XCode。

  2. 文件/新项目...

  3. 在新建项目助手中,展开命令行实用程序组。

  4. C ++工具

  5. 点击下一步

  6. 输入项目名称和目录,然后点击完成。

  7. 按Cmd-Shift-R打开控制台窗口。



  8. 点击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:

    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.

    这篇关于如何在Xcode 4中设置一个C ++项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆