【问题标题】:stdlibc++ headers not found error on xcode 10 [duplicate]xcode 10上未找到stdlibc ++标头错误[重复]
【发布时间】:2018-09-20 13:00:54
【问题描述】:

我们为我们的 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.

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

【问题讨论】:

    标签: c++ ios xcode c++11 libc++


    【解决方案1】:

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

    【讨论】:

    • 这是一个技巧而不是解决方案。我们添加了 CXXFLAGS += -stdlib=libc++ 我们的外部库 Makefile 并删除了 -stdlib=stdlibc++
    猜你喜欢
    • 2016-01-26
    • 2013-04-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多