Skip to content

使用cmake依赖brpc编译成功,运行报undefined symbol: pthread_mutex_lock #1086

@bai-charisu

Description

@bai-charisu

使用cmake动态依赖brpc,编译显示正常,但是运行的时候报错:
image

nm查看libbrpc.so是有这个符号的
image

ldd查看,可执行程序也确实链接了brpc和pthread,所以不知道问题出在哪里:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions