../lib//libscsdblog.so: undefined reference to `pthread_atfork'

代码中遇到这个问题,但是在makefile中已经添加了-lpthread.

最后发现问题时,引入库的顺序,把-lpthread放在最后就可以了。

原文地址:https://www.cnblogs.com/lit10050528/p/4106539.html