简体   繁体   English

#包括 <deque> 在Xcode4上

[英]#include <deque> on Xcode4

I use Xcode 4.0.2 (latest update for Snow Leopard) and want to know how to include this C++ standard library and other like this. 我使用Xcode 4.0.2(Snow Leopard的最新更新),并且想知道如何包括此C ++标准库和其他类似库。

I read some questions and answer by changing .m file to .mm files. 我通过将.m文件更改为.mm文件来阅读一些问题和解答。 But I don't know how to add a .mm file into my project, when I click on add a new file only see class file and other options different to .mm files. 但是我不知道如何将.mm文件添加到我的项目中,当我单击“添加新文件”时,只能看到类文件以及与.mm文件不同的其他选项。

But, It's possible to include the deque file header into am file and to add it. 但是,可以将双端队列文件头包含在am文件中并添加它。

Thanks. 谢谢。

添加.m文件,然后将其重命名为.mm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM