ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You provide very little information (not even the platform / OS you're building this on), so this is just a guess.

The error you show has this:

/opt/ros/melodic/include/rosgraph_msgs/Log.h:95:5: note: in expansion of macro ‘DEBUG’
     DEBUG = 1,

DEBUG is not a macro in /opt/ros/melodic/include/rosgraph_msgs/Log.h, but a member of an enum.

Would you perhaps happen to have #defined a DEBUG macro yourself? Or have you used #define DEBUG <some_value> yourself?

That could cause this problem.

You provide very little information (not even the platform / OS you're building this on), so this is just a guess.

The error you show has this:

/opt/ros/melodic/include/rosgraph_msgs/Log.h:95:5: note: in expansion of macro ‘DEBUG’
     DEBUG = 1,

DEBUG is not a macro in /opt/ros/melodic/include/rosgraph_msgs/Log.h, but a member of an enum.

From /opt/ros/melodic/include/rosgraph_msgs/Log.h:

  enum {
    DEBUG = 1,
    INFO = 2,
    WARN = 4,
    ERROR = 8,
    FATAL = 16,
  };

Would you perhaps happen to have #defined a DEBUG macro yourself? Or have you used #define DEBUG <some_value> yourself?

That could cause this problem.

The rest of the errors are not interesting at this point, as it's very likely they're caused by the compiler trying to make sense of the rest of the file, which it can't.

You provide very little information (not even the platform / OS you're building this on), so this is just a guess.

The error you show has this:

/opt/ros/melodic/include/rosgraph_msgs/Log.h:95:5: note: in expansion of macro ‘DEBUG’
     DEBUG = 1,

DEBUG is not a macro in /opt/ros/melodic/include/rosgraph_msgs/Log.h, but a member of an enum.

From /opt/ros/melodic/include/rosgraph_msgs/Log.h:

  enum {
    DEBUG = 1,
    INFO = 2,
    WARN = 4,
    ERROR = 8,
    FATAL = 16,
  };

Would you perhaps happen to have #defined a DEBUG macro yourself? Or have you used #define DEBUG <some_value> yourself?

That could cause this problem.

The rest of the errors are not interesting at this point, as it's very likely they're caused by the compiler trying to make sense of the rest of the file, which it can't.

Is there a hidden header dependency?

if that was the case, in code which is around 12 years old, we would have probably seen more reports about this.

You provide very little information (not even the platform / OS you're building this on), so this is just a guess.

The error you show has this:

/opt/ros/melodic/include/rosgraph_msgs/Log.h:95:5: note: in expansion of macro ‘DEBUG’
     DEBUG = 1,

DEBUG is not a macro in /opt/ros/melodic/include/rosgraph_msgs/Log.h, but a member of an enum.

From /opt/ros/melodic/include/rosgraph_msgs/Log.h:

  enum {
    DEBUG = 1,
    INFO = 2,
    WARN = 4,
    ERROR = 8,
    FATAL = 16,
  };

Would you perhaps happen to have #defined a DEBUG macro yourself? Or have you used #define DEBUG <some_value> yourself?

That could cause this problem.problem as the symbols would clash.

The rest of the errors are not interesting at this point, as it's very likely they're caused by the compiler trying to make sense of the rest of the file, which it can't.

Is there a hidden header dependency?

if that was the case, in code which is around 12 years old, we would have probably seen more reports about this.