我正在 xcode 项目中使用 .mm 扩展名上的一些文件来编译这些文件,在添加此编译器后,我们在构建设置中添加了 LLVM-GCC 4.2,这显示了错误
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.sdk/usr/include/float.h:8:24: error: float.h: No such file or directory
我不知道如何消除此错误,有任何帮助可以消除此错误。
thanks
Balraj
Mac OSX 上默认使用的 gcc 4.2 不支持这些标头。
切换到4.0版本(有描述here http://www.iphonedevsdk.com/forum/iphone-sdk-development/20268-stdarg-h-float-h-build-errors.html)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)