ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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 #define
d a DEBUG
macro yourself? Or have you used #define DEBUG <some_value>
yourself?
That could cause this problem.
2 | No.2 Revision |
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 #define
d 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.
3 | No.3 Revision |
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 #define
d 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.
4 | No.4 Revision |
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 #define
d 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.