我想編譯一些C++代碼作爲靜態庫在iPhone上使用。如果我爲模擬器編譯東西(i386架構),所有東西都編譯成桃色,但是當我將架構切換到arm時,我看到所有這些包含錯誤,看起來在iPhone SDK STL頭文件中。任何想法發生了什麼?C++編譯爲iPhone(STL問題?)
首先是錯誤的:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/include/c++/4.2.1/string:45:0 Bits/c++config.h: No such file or directory in
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/include/c++/4.2.1/string
這是使用iPhone 3.2 SDK Beta btw。如果我選擇目標作爲設備3.2,它似乎工作,但所有較低的操作系統版本給我這些錯誤。 – toastie 2010-01-29 06:15:02