注册

pthread_mutex_consistent_np函数已废弃,新版本下驱动编译不过

空指针 2024/08/05 630 3

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:达梦8
【操作系统】:Ubuntu 22.04.4 LTS
【CPU】:x86
【问题描述】*:编译驱动时报错"undefined reference to `pthread_mutex_consistent_np'", 查询后发现这个函数在2.34已废弃。系统当前使用的2.35。

[[deprecated]]
int pthread_mutex_consistent_np(const pthread_mutex_t *mutex);

This GNU-specific API, which first appeared in glibc 2.4, is
nowadays obsolete and should not be used in new programs; since
glibc 2.34 it has been marked as deprecated.

回答 0
暂无回答
扫一扫
联系客服