在ubuntu22.04+ROS noetic中编译程序,提示:
/usr/include/log4cxx/boost-std-configuration.h:10:18: error: ‘shared_mutex’ in namespace ‘std’ does not name a type
10 | typedef std::shared_mutex shared_mutex;
解决方法1:
修改文件:
vi /usr/include/log4cxx/boost-std-configuration.h
将以下代码:
#define STD_SHARED_MUTEX_FOUND 1
#define Boost_SHARED_MUTEX_FOUND 0
修改为:
#define STD_SHARED_MUTEX_FOUND 0
#define Boost_SHARED_MUTEX_FOUND 1
再次编译,OK。
欢迎加入多源融合定位与控制技术讨论QQ群,群号:518859469