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