How to consume ORTools in a raw C++ makefile #4528
-
Hello, I am able to consume ORTools (built from source) in a CMake project. However, I am having difficulty setting it up in a raw native makefile project. I currently have libortools.so in /usr/local/lib and the include files are in /usr/local/include/ortools When compiling a project which has OR Tools header files and source code, I obtain a bunch of the following compile time errors itself (so libortools.so is not yet into the picture): /usr/local/include/ortools/constraint_solver/routing.h:662:5: error: no matching function for call to ‘absl::lts_20240722::log_internal::LogMessageFatal::LogMessageFatal(const char [55], int, std::string&)’ Could you please direct me toward the right configuration for raw makefile consumption? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I would generate the makefile with cmake and look at the c++ flags. Most likely you need the c++17 mode. |
Beta Was this translation helpful? Give feedback.
I would generate the makefile with cmake and look at the c++ flags.
Most likely you need the c++17 mode.