天天看點

xcode無法include vector的解決方法

當各位在 XCode 遇到 #import <vector.h> 不能使用時,請照以下設定修正即可。

1. 選擇至  project  ->  build setting  ->  apple LLVM compiler 4.2 – language

2. 將 Compile Sources As 此項修改為 Objective-C++。

http://andys0623.blogspot.kr/2012/12/iphonexcode-vectorh-file-not-found.html

xcode6 同樣有效