Closed alberthli closed 5 months ago
See https://drake.mit.edu/release_notes/v1.27.0.html:
As a result, we have some new lower bounds on supported tool versions: C++ standard >= 20
You need to tell CMake to use C++20, like this.
We found some places that still said C++17, so possibly as of #21247 this would be automatically fixed.
What happened?
I'm currently using
drake
in adocker
container runningubuntu
22.04 installed by following these instructions. In a testc++
project that depends ondrake
, upon trying to importmultibody_plant.h
, I see the below error. This error only occurred today when I rebuilt my container without the Docker cache without any modification to the lines regardingdrake
, so it seems to be related to one of the newer releases, though I can't say which one with certainty. I do think the last time I built from scratch, the most recentdrake
release was 1.26.0.This can be minimally reproduced using three files attached here: debug.zip.
For convenience, I'll also paste the contents of the files here, since they are short. The Dockerfile should be in the same directory as a folder called
test
with the belowCMakeLists.txt
and program namedtest.cpp
.The Dockerfile:
The
CMakeLists.txt
:The file
test.cpp
:Version
1.27.0
What operating system are you using?
Ubuntu 22.04
What installation option are you using?
apt install drake
Relevant log output
No response