From de57ad538e8b9470ff7545e7f6a5d2f525da83c0 Mon Sep 17 00:00:00 2001 From: Abdoulbari Zakir Date: Fri, 20 Oct 2023 03:18:14 -0700 Subject: [PATCH] fix conversion path->string --- src/cpp/multisolver_interface/environment.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cpp/multisolver_interface/environment.cc b/src/cpp/multisolver_interface/environment.cc index c70426598..69625b406 100644 --- a/src/cpp/multisolver_interface/environment.cc +++ b/src/cpp/multisolver_interface/environment.cc @@ -283,11 +283,11 @@ std::vector XpressDynamicLibraryPotentialPaths() { if (xpress_home_from_env != nullptr) { std::filesystem::path prefix(xpress_home_from_env); #if defined(_MSC_VER) // Windows - potential_paths.push_back(prefix / "\\bin\\xprs.dll"); + potential_paths.push_back((prefix / "\\bin\\xprs.dll").string()); #elif defined(__APPLE__) // OS X - potential_paths.push_back(prefix / "/lib/libxprs.dylib"); + potential_paths.push_back((prefix / "/lib/libxprs.dylib").string()); #elif defined(__GNUC__) // Linux - potential_paths.push_back(prefix / "/lib/libxprs.so"); + potential_paths.push_back((prefix / "/lib/libxprs.so").string()); #else std::cerr << "OS Not recognized by xpress/environment.cc." << " You won't be able to use Xpress.";