Open MatteoAzziniUnice opened 4 months ago
error: ‘filesystem’ is not a member of ‘std’
编译器版本太旧,把gcc和g++更新到11 sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-11 sudo apt-get install g++-11
//再次查看gcc版本 gcc -v //发现还是7.5.0 //进入/usr/bin目录下删除旧版本gcc/g++文件 cd /usr/bin sudo rm gcc g++ //建立软连接 sudo ln -s gcc-11 gcc sudo ln -s g++-11 g++ //再次查看版本,发现变为11
//重新cmake ,通过
原文链接:https://blog.csdn.net/lost__pig/article/details/131451887
Good morning and thanks for the help in advance. I'm trying to build your code but I have a problem with the command cmake --build . --target install --config Release
In fqct when I execute it it gives In file included from /home/ealao/Desktop/ct_icp/src/SlamCore/io.cxx:6:0: /home/ealao/Desktop/ct_icp/src/SlamCore/io.cxx: In function ‘std::vector slam::{anonymous}::DefaultPropertiesFromSchema(const std::vector&, bool)’:
/home/ealao/Desktop/ct_icp/src/SlamCore/../../include/SlamCore/utils.h:30:32: error: ‘filesystem’ is not a member of ‘std’
define __SLAM_FILENAME std::filesystem::path(FILE__).filename()
wich is weird since I#m using ubuntu 18, gcc 7.5 as required. Do you have any idea of how to solve it