You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to compile the module on Ubuntu 24.04, the compilation fails due to the absence of pthread.h in the log_module.cpp file. Specifically, the error messages point to the lack of declaration for pthread_mutex_init, pthread_mutex_lock, and pthread_mutex_unlock.
Here’s the error output encountered:
error: ‘pthread_mutex_init’ was not declared in this scope; did you mean ‘pthread_mutex_t’?
error: ‘pthread_mutex_unlock’ was not declared in this scope; did you mean ‘pthread_mutex_t’?
error: ‘pthread_mutex_lock’ was not declared in this scope; did you mean ‘pthread_mutex_t’?
Looking at the log_module.h, it appears that the inclusion of pthread.h has been commented out under the #else directive for Linux:
When attempting to compile the module on Ubuntu 24.04, the compilation fails due to the absence of
pthread.h
in thelog_module.cpp
file. Specifically, the error messages point to the lack of declaration forpthread_mutex_init
,pthread_mutex_lock
, andpthread_mutex_unlock
.Here’s the error output encountered:
Looking at the
log_module.h
, it appears that the inclusion ofpthread.h
has been commented out under the#else
directive for Linux:The code compiles perfectly when the commented-out line (
#include <pthread.h>
) is uncommented.Questions:
pthread.h
intentional for Linux, or is this an oversight?Environment:
The text was updated successfully, but these errors were encountered: