【问题标题】:Dlib library can't find any STL template in iOS project (Xcode 8)Dlib 库在 iOS 项目(Xcode 8)中找不到任何 STL 模板
【发布时间】:2018-02-06 22:53:32
【问题描述】:

我正在尝试将 Dlib 库添加到我在 Xcode 8.3.3 中的 iOS 项目中。
我试过使用this cocoapod,也试过自己编译,但每次我得到这个:.../Pods/Headers/Public/dlib/dlib/image_processing/scan_image.h:6:10: 'vector' file not found
甚至
.../Pods/dlib/build/install/include/dlib/algs.h:17:10: "Dlib requires C++11 support. Give your compiler the -std=c++11 option to enable it." .../Pods/dlib/build/install/include/dlib/algs.h:93:10: 'string' file not found
我已经正确配置了 Xcode 项目并添加了所有必要的 dlib 链接器标志。
Project Build settings screenshot
我试图在 Objective-C++ 中实现的所有内容都包含在一个 .mm 文件中。

我什么都试过了。请帮忙。谢谢。

【问题讨论】:

    标签: ios xcode c++11 stl dlib


    【解决方案1】:

    不要将所有内容都放在一个 .mm 文件中。 Bridging-Header 应该只导入 .h.m 文件。

    【讨论】:

    • 您有什么解决方案吗,我在将 dlib 与 xcode 9 集成时遇到了同样的问题。
    猜你喜欢
    • 1970-01-01
    • 2019-10-06
    • 2019-06-21
    • 1970-01-01
    • 2016-07-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-30
    相关资源
    最近更新 更多