Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unable to link ROS libraries using Lunar

Hey guys, hopefully you can help me out with this. I'm trying to make the dataspeed DBW package. However, when I do, I keep getting errors that it can't link ros libraries.

dbc_node.cpp:(.text+0x13a): undefined reference to `ros::init(int&, char**, std::string const&, unsigned int)'
dbc_node.cpp:(.text+0x196): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
dbc_node.cpp:(.text+0x21b): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
dbc_node.cpp:(.text+0x2a1): undefined reference to `ros::NodeHandle::getParam(std::string const&, std::string&) const'
dbc_node.cpp:(.text+0x338): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
dbc_node.cpp:(.text+0x447): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'

They don't explicitly say they support lunar, but it doesn't seem like it's something that should be causing a problem. Does lunar require a different way of being linked or is there some other steps I can take. (Short of uninstalling lunar and going back to indigo or kinetic)

Thanks guys

Unable to link ROS libraries using Lunar

Hey guys, hopefully you can help me out with this. I'm trying to make the dataspeed DBW package. package. However, when I do, I keep getting errors that it can't link ros libraries.

dbc_node.cpp:(.text+0x13a): undefined reference to `ros::init(int&, char**, std::string const&, unsigned int)'
dbc_node.cpp:(.text+0x196): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
dbc_node.cpp:(.text+0x21b): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
dbc_node.cpp:(.text+0x2a1): undefined reference to `ros::NodeHandle::getParam(std::string const&, std::string&) const'
dbc_node.cpp:(.text+0x338): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
dbc_node.cpp:(.text+0x447): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'

They don't explicitly say they support lunar, but it doesn't seem like it's something that should be causing a problem. Does lunar require a different way of being linked or is there some other steps I can take. (Short of uninstalling lunar and going back to indigo or kinetic)

Thanks guys