【发布时间】:2021-05-23 16:42:10
【问题描述】:
我尝试为 Windows 构建 boost 库,但遇到了一些错误。 提升版本 boost_1_75_0 版本 1.75。
MinGW 带有我从
获得的代码块codeblocks-20.03mingw-setup.exe
我的windows也安装了python39。
Python bin(c:\python39\bin)、MingW\bin (c:\codeblocks\MingW\bin) 和 boost install (c:\boost\bin) 在搜索路径中。
boost 源代码在 f:\src\boost_1_75_0
cd 到 f:\src\boost_1_75_0\tools\build 运行
bootstrap.bat gcc
b2 工具集=gcc --prefix=C:\boost --build-type=完成安装
cd 到 f:\src\boost_1_75_0\ 并运行 b2 toolset=gcc --prefix=C:\boost release debug inlining=off debug-symbols=on --with-filesystem --with-program_options --build-type=complete install
错误:
x86_64-w64-mingw32/bin/ld.exe:搜索-lstdc++时跳过不兼容的x86_64-w64-mingw32/8.1.0/libstdc++.a 找不到-lstdc++
x86_64-w64-mingw32/bin/ld.exe:搜索-lmingwthrd时跳过不兼容的x86_64-w64-mingw32/lib/libmingwthrd.a
x86_64-w64-mingw32/bin/ld.exe:找不到-lmingwthrd
x86_64-w64-mingw32/bin/ld.exe:搜索-lgcc_s时跳过不兼容的x86_64-w64-mingw32/lib/libgcc_s.a
x86_64-w64-mingw32/bin/ld.exe:找不到-lgcc_s
x86_64-w64-mingw32/bin/ld.exe:搜索-lgcc时跳过不兼容的x86_64-w64-mingw32/8.1.0/libgcc.a
x86_64-w64-mingw32/bin/ld.exe:找不到-lgcc
【问题讨论】: