C++_pthread read-write lock_读写锁_visual studio 2015下配置

pthread下载地址:https://sourceware.org/pthreads-win32/

1. 项目->属性->VC++目录

包含目录里添加:pthread所在路径\pthread\Pre-built.2\include

库目录里添加:pthread所在路径\pthread\Pre-built.2\lib\x86

2.项目->属性->调试

环境里添加:pthread所在路径\pthread\Pre-built.2\lib\x86

3.源文件中:

#include<pthread.h>
#pragma comment(lib, "pthreadVC2.lib")

4.将pthreadVC2.dll动态链接库放到项目可执行文件同一路径下。

posted on 2019-04-17 17:23  JASONlee3  阅读(416)  评论(0编辑  收藏  举报

导航