Open raneamri opened 1 month ago
That depends on the Linux distribution and version and how it's setup I guess... Which Linux version are you using?
This error was produced by CI workflow, which is running on ubuntu-latest. No other change was made to the repos except for the addition of set(CMAKE_CXX_STANDARD 20)
in QuantLib's CMake file when this error came up.
Their development images used for building quantlib install boost from scratch. And the version used currently in their Linux builds is rolling
. (see also here)
The container images can be found here, and we see it's using Boost 1.85.
Perhaps we should try to use the same container for our CI builds that QuantLib is using - that would make things easier to stay compatible....
(and note that you can set the standard using the CMake command-line, i.e. add -DCMAKE_CXX_STANDARD=20
to the cmake configure call)
Good idea, I'll match the Linux workflow to QuantLib's. Is it also worth adding matrix configuration for CXX 20?
yes
Should be fixed by #23
QuantLib expects Boost ver. ≥1.75.0 for CXX ≥20 but Linux fetches 1.74.0 with
sudo apt install -y libboost-dev ccache ninja-build
: