msys2 使用指定boost

pacman -S mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium mingw-w64-x86_64-hidapi

wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-boost-1.69.0-2-any.pkg.tar.xz
wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-icu-58.2-3-any.pkg.tar.xz

pacman -U mingw-w64-x86_64-icu-58.2-3-any.pkg.tar.xz
pacman -U mingw-w64-x86_64-boost-1.69.0-2-any.pkg.tar.xz

原文地址:https://www.cnblogs.com/marklove/p/11084250.html