Skip to content

windwos ros2-eloquent-debug std::regex re(regex) running error #170

@cjsJack

Description

@cjsJack

Hi, I am using ros2-eloquent-debug in windows, using visual studio 2015,
and I am building image_common package from https://github.com/ros-perception/image_common , and when I run list_transport project of image_common package, it failed when running list_transports.exe
So, I debug and find the reason is from pluginlib package from https://github.com/ros/pluginlib ,there is a syntax error about std::regex re(regex); in split.hpp from C:\dev\ros2-eloquent-debug\include\pluginlib\impl\split.hpp 45 line, and the parameter regex of std::regex re(regex) will become "\\" in windows system, because C:\dev\ros2-eloquent-debug\include\pluginlib\impl\filesystem_helper.hpp already define #define CLASS_LOADER_IMPL_OS_DIRSEP '\\'
so std::regex re("\\") will fail when running project. It is running error, I already test in vs2015, vs2017, vs2019, they all run error std::regex re("\\")
Because give me some advice, thanks,
jack

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions