我想编译一些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