XCode 4.2 – vector.h file not found             



以前的项目中引入了C++ STL里的vector.h文件在将XCode升级到4.2后编译时出现这样的错误“vector.h filenot found居然会有这么神奇的问题以前都好好的突然就不行了查阅资料发现原来是编译器的配置不对修改如下配置即可:

1. 选择project -> build setting -> apple LLVM compiler 3.0 – language配置项

2. 将Compile Sources As设置项修改为Objective-C++