xcode – xcrun clang –sysroot找不到stdio.h
发布时间:2020-12-14 19:14:39 所属栏目:百科 来源:网络整理
导读:使用 Xcode 4.6,在Mac OS X 10.8.2下,为了编译hello.c,我发布了 xcrun gcc cannot find header files中推荐的xcrun命令,但仍然收到无法找到头文件stdio.h的错误. $xcrun clang --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platf
使用
Xcode 4.6,在Mac OS X 10.8.2下,为了编译hello.c,我发布了
xcrun gcc cannot find header files中推荐的xcrun命令,但仍然收到无法找到头文件stdio.h的错误.
$xcrun clang --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/ -o hello hello.c hello.c:2:10: fatal error: 'stdio.h' file not found #include <stdio.h> ^ 1 error generated. $cat hello.c /* C program,Hello World */ #include <stdio.h> int main() { printf("Hello World n"); } 解决方法
它应该与: xcrun clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- c# – 将复杂类型映射到实体框架中的SqlQuery结果
- 看看GWT 2.0 新的界面设计 ( 通过配置 xml 进行设计.) UiBi
- 探讨Ajax中有关readyState(状态值)和status(状态码)的问
- cocos2d-js 3.8监听返回键,进入后台,恢复显示
- uploadify,swfupload等flash上传session丢失问题,无法接收
- ruby – 如何从gem内部引用文件
- c – 为什么调用成员函数时std :: reference_wrapper没有隐
- ajax提交form表单
- 在Xcode4中使用“Archive”和“Build for Archiving”的不同
- jquery.form.js实现将form提交转为ajax方式提交的方法