我不是王小歪 2022-05-06 15:07 采纳率: 100%
浏览 500
已结题

ROS中进行catkin_make出现“undefined reference to `ros::console::initializeLogLocation'”的错误

[ 70%] Built target vesc_ackermann_nodelet
[ 71%] Linking CXX executable /home/lc/racecar_ws/devel/lib/vesc_driver/vesc_driver_node
CMakeFiles/getID.dir/src/getID.cpp.o: In function main': getID.cpp:(.text+0x215): undefined reference to ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
getID.cpp:(.text+0x3af): undefined reference to ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' CMakeFiles/getFirmwareVersion.dir/src/getFirmwareVersion.cpp.o: In function main':
getFirmwareVersion.cpp:(.text+0x215): undefined reference to ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' getFirmwareVersion.cpp:(.text+0x3af): undefined reference to ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
CMakeFiles/ackermann_to_vesc_node.dir/src/ackermann_to_vesc_node.cpp.o: In function `main':

  • 写回答

1条回答 默认 最新

  • 溪风沐雪 2022-05-06 15:15
    关注

    看起来像是函数未定义,你检查一下你的CMakeLists.txt里依赖项是否添加全了,是不是有缺失

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 5月15日
  • 已采纳回答 5月7日
  • 创建了问题 5月6日

悬赏问题

  • ¥15 WPF使用Canvas绘制矢量图问题
  • ¥15 用三极管设计一个单管共射放大电路
  • ¥15 孟德尔随机化r语言运行问题
  • ¥15 pyinstaller编译的时候出现No module named 'imp'
  • ¥15 nirs_kit中打码怎么看(打码文件是csv格式)
  • ¥15 怎么把多于硬盘空间放到根目录下
  • ¥15 Matlab问题解答有两个问题
  • ¥15 LCD12864中文显示
  • ¥15 在使用CH341SER.EXE时不小心把所有驱动文件删除了怎么解决
  • ¥15 gsoap生成onvif框架