Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.
This repository was archived by the owner on May 31, 2025. It is now read-only.

Problem compiling utilities/message_filters/synchronizer.h with GCC 8.0.1 on Fedora 28 #1383

@nordmoen

Description

@nordmoen

I first reported this issue here, but the solution seems to be to change synchronizer.h:358.

The problem that appeared with Fedora 28 and GCC 8.0.1 is:

Repos/ros_catkin_ws/src/image_common/image_transport/src/camera_subscriber.cpp:112:64:   required from here
Repos/ros_catkin_ws/install_isolated/include/message_filters/synchronizer.h:358:14: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<’
     this->add<i>(evt);

According to this StackOverflow answer, synchronizer.h line 358 is ill-formed. The solution is to add template so the line reads this->template add<i>(evt);. This is the same syntax used on line 342 so it appears a similar issue has been encountered before.

After applying the modest change, I was able to compile all the packages I needed on Fedora 28 😃

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions