本文記錄在Windows下編譯pthreads的流程。
零、環境
操作系統 | Windows 11 |
VS Code | 1.92.1 |
Git | 2.34.1 |
MSYS2 | msys2-x86_64-20240507 |
Visual Studio | Visual Studio Community 2022 |
CMake | 3.22.1 |
一、編譯安裝
1.1 下載
git clone https://git.code.sf.net/p/pthreads4w/code
1.2 構建
1.3 編譯
二、使用pthreads
網絡資料
pthreads-win32