Skip to content

Commit

Permalink
[common] Work around linker error with clang 16+ (#22172)
Browse files Browse the repository at this point in the history
This patch avoids linker errors seen with clang 16 through 18 seen on
both macos and ubuntu noble. Somehow, without this patch, the compiler
emits undefined symbols containing the Drake-only using-statement type
`MatrixX`.
  • Loading branch information
rpoyner-tri authored Nov 14, 2024
1 parent 3613367 commit 3eeacf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/eigen_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ static_assert(EIGEN_VERSION_AT_LEAST(3, 3, 5),
#include "drake/common/constants.h"
#include "drake/common/drake_assert.h"
#include "drake/common/drake_copyable.h"
#include "drake/common/fmt_eigen.h" // Clang-16 workaround; see #22061.

namespace drake {

Expand Down

0 comments on commit 3eeacf5

Please sign in to comment.