File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ Java and .Net. Each language have different requirements for the code samples.
1515#include < ostream>
1616#include < string>
1717
18+ #include " absl/base/log_severity.h"
19+ #include " absl/log/globals.h"
20+ #include " ortools/base/init_google.h"
1821#include " ortools/constraint_solver/constraint_solver.h"
1922
2023namespace operations_research {
@@ -59,7 +62,9 @@ void SimpleCpProgram() {
5962
6063} // namespace operations_research
6164
62- int main(int /* argc* /, char* /* argv* /[ ] ) {
65+ int main(int argc, char* argv[ ] ) {
66+ InitGoogle(argv[ 0] , &argc, &argv, true);
67+ absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
6368 operations_research::SimpleCpProgram();
6469 return EXIT_SUCCESS;
6570}
Original file line number Diff line number Diff line change @@ -24,7 +24,10 @@ and .Net. Each language have different requirements for the code samples.
2424#include < cstdlib>
2525#include < sstream>
2626
27+ #include " absl/base/log_severity.h"
28+ #include " absl/log/globals.h"
2729#include " absl/log/log.h"
30+ #include " ortools/base/init_google.h"
2831#include " ortools/constraint_solver/constraint_solver.h"
2932#include " ortools/routing/enums.pb.h"
3033#include " ortools/routing/index_manager.h"
@@ -83,7 +86,9 @@ void SimpleRoutingProgram() {
8386
8487} // namespace operations_research::routing
8588
86- int main(int /* argc* /, char* /* argv* /[ ] ) {
89+ int main(int argc, char* argv[ ] ) {
90+ InitGoogle(argv[ 0] , &argc, &argv, true);
91+ absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
8792 operations_research::routing::SimpleRoutingProgram();
8893 return EXIT_SUCCESS;
8994}
You can’t perform that action at this time.
0 commit comments