I try to build boost libraries for windows and got some errors.
boost version boost_1_75_0 version 1.75.
MinGW come with Codeblocks I got from https://sourceforge.net/projects/codeblocks/files/Binaries/20.03/Windows/codeblocks-20.03mingw-setup.exe/download
codeblocks-20.03mingw-setup.exe
my windows also installed python39.
Python bin(c:python39bin), MingWbin (c:codeblocksMingWbin) and boost install (c:boostbin) are in search path.
boost source code was in f:srcboost_1_75_0
cd to f:srcboost_1_75_0toolsbuild
run
bootstrap.bat gcc
b2 toolset=gcc –prefix=C:boost –build-type=complete install
cd to f:srcboost_1_75_0 and run
b2 toolset=gcc –prefix=C:boost release debug inlining=off debug-symbols=on –with-filesystem –with-program_options –build-type=complete install
ERROR:
x86_64-w64-mingw32/bin/ld.exe: skipping incompatible x86_64-w64-mingw32/8.1.0/libstdc++.a when searching for -lstdc++
cannot find -lstdc++
x86_64-w64-mingw32/bin/ld.exe: skipping incompatible x86_64-w64-mingw32/lib/libmingwthrd.a when searching for -lmingwthrd
x86_64-w64-mingw32/bin/ld.exe: cannot find -lmingwthrd
x86_64-w64-mingw32/bin/ld.exe: skipping incompatible x86_64-w64-mingw32/lib/libgcc_s.a when searching for -lgcc_s
x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc_s
x86_64-w64-mingw32/bin/ld.exe: skipping incompatible x86_64-w64-mingw32/8.1.0/libgcc.a when searching for -lgcc
x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc
Source: Windows Questions