在 xcode 10 上找不到 stdlibc++ 标头错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/52425766/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
stdlibc++ headers not found error on xcode 10
提问by ir2pid
We have some c libraries written for our iOS project and after upgrading to Xcode 10, when compiling we get the error:
我们为 iOS 项目编写了一些 c 库,升级到 Xcode 10 后,编译时出现错误:
error: include path for stdlibc++ headers not found; pass ‘-std=libc++'
on the command line to use the libc++ standard library instead
[-Werror,-Wstdlibcxx-not-found]
1 error generated.
Where do we need to make changes in out makefiles? Because I don't find the '-std='argument in them.
我们需要在哪里更改生成文件?因为我没有在其中找到 '-std=' 参数。
回答by Debasish Chowdhury
Find the answer in Apple's developers forum. https://forums.developer.apple.com/thread/106114The sdk tools needs to be copied from older Xcode.
在 Apple 的开发者论坛中找到答案。 https://forums.developer.apple.com/thread/106114sdk 工具需要从旧的 Xcode 复制。