xcode 10 上未找到 stdlibc++ 标头错误

ir2*_*pid 5 c++ xcode ios c++11 libc++

我们为 iOS 项目编写了一些 c 库,升级到 Xcode 10 后,编译时出现错误:

\n\n
error: include path for stdlibc++ headers not found; pass \xe2\x80\x98-std=libc++\xe2\x80\x99\non the command line to use the libc++ standard library instead\n[-Werror,-Wstdlibcxx-not-found]\n        1 error generated.\n
Run Code Online (Sandbox Code Playgroud)\n\n

我们需要在哪些 makefile 中进行更改?因为我在其中找不到 '-std=' 参数。

\n

小智 -2

在苹果开发者论坛中寻找答案。 https://forums.developer.apple.com/thread/106114 sdk 工具需要从旧版 Xcode 复制。

  • 这是一个黑客而不是解决方案。我们添加了 CXXFLAGS += -stdlib=libc++ 外部库 Makefile 并删除了 -stdlib=stdlibc++ (5认同)