- 不要将mingw设置到环境变量中否则cmake项目会有奇怪的问体,
- 如果没有必要建议使用ucrt的
- vcpkg如果想安装mingw库开启终端输入以下内容
$currentPath = $env:PATH
$newPath ="D:\Program\msys2\ucrt64\bin"
$env:PATH ="$newPath;$currentPath"
$currentPath = $env:PATH
$newPath ="D:\Program\msys2\ucrt64\bin"
$env:PATH ="$newPath;$currentPath"
评论区