See https://stackoverflow.com/questions/
8060025/is-this-c11-regex-error-me-or-the-compiler.
static std::string get_lib_name(const std::string& pathname)
{
static std::string get_lib_name(const std::string& pathname)
{
- static const std::regex so_re("\\.so[.0-9]*$");
- static const std::regex version_re("-[.0-9-]*$");
+ static const std::regex so_re("\\.so[\\.0-9]*$", std::regex_constants::basic);
+ static const std::regex version_re("-[\\.0-9-]*$", std::regex_constants::basic);
std::string map_basename = simgrid::xbt::Path(pathname).getBasename();
std::string libname;
std::string map_basename = simgrid::xbt::Path(pathname).getBasename();
std::string libname;