如何用Dev-C++在Windows环境下编写依赖pthread.h的头文件的多线程应用程序?
- 内容介绍
- 文章标签
- 相关推荐
本文共计394个文字,预计阅读时间需要2分钟。
一、下载Windows版本的pthread最新版本:`+pthreads-w32-2-9-1-release.zip`。
二、解压pthread到指定目录:E:\DEV-CPP\Pthread。
一、下载Windows版本的pthread
目前最新版本是:pthreads-w32-2-9-1-release.zip。
二、解压pthread到指定目录
我选择的目录是:E:\DEV-CPP\Pthread
完成后,该目录会多出三个文件夹:Pre-built.2,pthreads.2,QueueUserAPCEx。
三、配置Dev-C++编译选项
1)点击“工具”→“编译选项”→“目录”→“c++包含文件”,浏览到刚才解压的pthread目录,选择E:\DEV-CPP\Pthread\Pre-built.2\include,添加。
本文共计394个文字,预计阅读时间需要2分钟。
一、下载Windows版本的pthread最新版本:`+pthreads-w32-2-9-1-release.zip`。
二、解压pthread到指定目录:E:\DEV-CPP\Pthread。
一、下载Windows版本的pthread
目前最新版本是:pthreads-w32-2-9-1-release.zip。
二、解压pthread到指定目录
我选择的目录是:E:\DEV-CPP\Pthread
完成后,该目录会多出三个文件夹:Pre-built.2,pthreads.2,QueueUserAPCEx。
三、配置Dev-C++编译选项
1)点击“工具”→“编译选项”→“目录”→“c++包含文件”,浏览到刚才解压的pthread目录,选择E:\DEV-CPP\Pthread\Pre-built.2\include,添加。

