ros / console_bridge

A ROS-independent package for logging that seamlessly pipes into rosconsole/rosout for ROS-dependent packages.
BSD 3-Clause "New" or "Revised" License
22 stars 62 forks source link

problem about "logError or logWarn ...undeclared" is solved #56

Closed dpluy closed 6 years ago

dpluy commented 6 years ago

add

#define logWarn CONSOLE_BRIDGE_logWarn
#define logError CONSOLE_BRIDGE_logError
#define logDebug CONSOLE_BRIDGE_logDebug
#define logInform CONSOLE_BRIDGE_logInform

to /usr/include/ros/console_bridge/console.h in some cases.

My OS: archlinux lend my wisdom.

dirk-thomas commented 6 years ago

The short not-namespaced macros where deprecated for a while and have intentionally been removed in #48. The rational is that they collide with function definitions in other code.

Therefore you should update your usage to use the namespaced version of the macros instead.