VS2019 fatal error LNK1104: 无法打开文件“libboost_random-vc142-mt-gd-x32-1_72.lib”错误处理
开始运行:
%comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsamd64_x86.bat"
cd F:\boost_1_72_0
F:
bootstrap.bat
自动生成b2.exe,再执行
.\b2.exe --toolset=msvc-14.2 architecture=x86 address-model=32 link=static --build-type=complete --with-system --with-thread --with-date_time --with-filesystem --with-serialization
.\b2.exe --toolset=msvc-14.2 architecture=x86 address-model=32 link=static --build-type=complete --with-system --with-thread --with-random --with-filesystem --with-serialization
.\b2.exe --toolset=msvc-14.2 architecture=x86 address-model=32 link=static --build-type=complete --with-system --with-thread --with-regex --with-filesystem --with-serialization
执行完成自动生成文件:
F:\boost_1_72_0\stage\lib