将std :: experimental :: filesystem与Xcode 9连接起来
发布时间:2020-12-14 19:10:11 所属栏目:百科 来源:网络整理
导读:我正在使用带有 Xcode 9.0 beta的std :: experimental :: filesystem.编译器阶段完成正常,但链接器抱怨未定义的符号: std::experimental::filesystem::v1::path::__filename() conststd::experimental::filesystem::v1::path::__filename() conststd::exper
我正在使用带有
Xcode 9.0 beta的std :: experimental :: filesystem.编译器阶段完成正常,但链接器抱怨未定义的符号:
std::experimental::filesystem::v1::path::__filename() const std::experimental::filesystem::v1::path::__filename() const std::experimental::filesystem::v1::path::__stem() const std::experimental::filesystem::v1::__status(std::experimental::filesystem::v1::path const&,std::__1::error_code*) 我也在使用std :: experimental :: filesystem :: canonical(),但是链接器并没有抱怨丢失它. 如何配置项目以包含这些缺少的引用? 更新: 我一直在尝试一个更简单的程序.如果我只使用canonical(),那么链接器会抱怨它丢失了. 我可以使用std :: experimental :: optional – 一切都编译,链接并运行OK.但“可选”是一个模板,因此可能不涉及库. 解决方法
你是用任何-std =选项编译的(Xcode中的“C语言方言”选项)?
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |