ubuntu boost运行./bootstrap.sh后出现Failed to build B2 build engine

谷梁鸣
2023-12-01

ubuntu boost运行./bootstrap.sh后可能会出现如下提示

Building B2 engine…

A C++11 capable compiler is required for building the B2 engine.
Toolset ‘cxx’ does not appear to support C++11.

Note, the C++11 capable compiler is only required for building the B2
engine. The B2 build system allows for using any C++ level and any other
supported language and resource in your projects.

You can specify the toolset as the argument, i.e.:
./build.sh gcc

Toolsets supported by this script are:
acc, clang, como, gcc, intel-darwin, intel-linux, kcc, kylix, mipspro,
pathscale, pgi, qcc, sun, sunpro, tru64cxx, vacpp

For any toolset you can override the path to the compiler with the CXX
environment variable. You can also use additional flags for the compiler
with the CXXFLAGS environment variable.

A special toolset; cxx, is available which is used as a fallback when a more<

 类似资料: