Atlas:undefined reference to `std::experimental::filesystem::v1::__cxx11::path::_M_split_cmpts()

1 问题现象

编写文件检测函数,对读取的文件,检测是否存在,

#include <experimental/filesystem>
bool fileExists(const std::string fileName, bool verbose=true){
    if (!std::experimental::filesystem::exists(std::experimental::filesystem::path(fileName))){
        if (verbose){
            std::cout << "File does not exist : " << fileName << std::endl;
        }    
        return false;
    }
    return true;
}

在cmake与make后,出现如下问题:

CMakeFiles/yolo.dir/media/sf_share/WorkSpace_MZY/Demo_20211207/MZY_20211207_验证版本/yolo_cv_capture_yaml/mzy_feature/src_mzy/det_config_mzy.cpp.o: In function `std::experimental::filesystem::v1::__cxx11::path::path<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::experimental::filesystem::v1::__cxx11::path>(std::__cxx11::basic_string<char, std::char_t
  • 4
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值