升级到 XCode 4.4.1 并重新启动我的机器,重新编译,现在当我尝试编译时出现以下错误 - 有什么建议吗?(它曾经编译得很好)(在 Lion 10.7.4 上运行,XCode 版本 4.4.1)
#ifndef MYFILE_H
#define MYFILE_H
#include <vector> <-- this line
#include <typeinfo>
#include <string>
#include "assert.h"
using namespace std;
错误信息
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/usr/include/c++/4.2.1/vector:69:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/usr/include/c++/4.2.1/bits/stl_vector.h:69:1: error: expected member name or ';' after declaration specifiers
_GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD)