我正在尝试在我的 ios 应用程序中使用 C++ 代码(我真的不喜欢目标 C,我只会在必要时使用它[查看控件等]),虽然一切似乎都在工作,但我得到了一个错误在下面的测试文件中。
#ifndef prueba3_GlobalStatic_h
#define prueba3_GlobalStatic_h
#include <string>
using namespace std;
class GlobalStatic
{
public:
GlobalStatic();
~GlobalStatic();
string foo();
private:
int integerValue;
};
#endif
当我尝试构建项目时,IDE 给了我以下错误:“'string' file not found”我环顾四周,但找不到确凿的答案;任何帮助,将不胜感激。本质上,我如何让标准库工作?