ldrobotSensorTeam/ldlidar_sl_ros2

colcon build 报错 error: ‘pthread_mutex_unlock’ was not declared in this scope; did you mean ‘pthread_mutex_t’?

Opened this issue · 1 comments

原因是因为在功能包的driver文件夹下的log_modele.h文件内没有申明pthread头文件,在前面需要加上#include <pthread.h>

原因是因为在功能包的driver文件夹下的log_modele.h文件内没有申明pthread头文件,在前面需要加上#include <pthread.h>

You need to add this in error file

#include <pthread.h>