diff --git a/ortools/base/BUILD.bazel b/ortools/base/BUILD.bazel index 327a9aa70c..9b24f1a603 100644 --- a/ortools/base/BUILD.bazel +++ b/ortools/base/BUILD.bazel @@ -379,9 +379,17 @@ cc_library( ], ) +cc_library( + name = "base_export", + hdrs = ["base_export.h"], +) + cc_library( name = "macros", hdrs = ["macros.h"], + deps = [ + ":base_export", + ], ) cc_library( diff --git a/ortools/math_opt/core/BUILD.bazel b/ortools/math_opt/core/BUILD.bazel index 5baa479cf1..6ce22e35e0 100644 --- a/ortools/math_opt/core/BUILD.bazel +++ b/ortools/math_opt/core/BUILD.bazel @@ -146,6 +146,7 @@ cc_library( name = "solver_debug", srcs = ["solver_debug.cc"], hdrs = ["solver_debug.h"], + deps = ["//ortools/base:base_export"], ) cc_library( diff --git a/ortools/math_opt/core/solver_debug.h b/ortools/math_opt/core/solver_debug.h index 6f80e4aa1b..aaf59048fe 100644 --- a/ortools/math_opt/core/solver_debug.h +++ b/ortools/math_opt/core/solver_debug.h @@ -17,7 +17,7 @@ #include #include -#include +#include "ortools/base/base_export.h" namespace operations_research { namespace math_opt {