pthread 找不到头文件

Windows系统解决方法

cmake编译报错,

报错了 cmake 无法打开包括文件: “pthread.h” 

解决方法:

pchread 官网下载代码:

POSIX Threads for Windows download | SourceForge.net

CMakeLists 中添加了pthread的头文件目录:

include_directories("C:/Users/Administrator/Pictures/liushishi/pthreads4w-code-v3.0.0/pthreads4w")
 

猜你喜欢

转载自blog.csdn.net/jacke121/article/details/135353103