0%

在Linux下编译C++11的多线程代码时,提示pthread_create为定义。最后发现clang++在Linux在使用的是posix来实现C++11的线程,编译的时候需要加上-pthread。

Read more »