linux停止编译进程,linux下程序编译出错解决方法

*** No rule to make target 'subscribe_pkg/CMakeFiles/subscribe_pkg_node.dir/build'。 停止。

CMakeFiles/Makefile2:957: recipe for target 'subscribe_pkg/CMakeFiles/subscribe_pkg_node.dir/all' failed

修改已知错误后,报出如上错误,则删掉编译结果,再次编译。

CMake Error: Error in cmake code at

/home/nizhipeng/ros_workspace/src/third_pkg/CMakeLists.txt:201:

Parse error.  Function missing ending ")".  End of file reached.

-- Configuring incomplete, errors occurred!

See also "/home/nizhipeng/ros_workspace/build/CMakeFiles/CMakeOutput.log".

See also "/home/nizhipeng/ros_workspace/build/CMakeFiles/CMakeError.log".

Makefile:598: recipe for target 'cmake_check_build_system' failed

make: *** [cmake_check_build_system] Error 1

Invoking "make cmake_check_build_system" failed

CmakeLists.txt中某一行缺少括号。

3cdf2589318cb259036bed6119fbcda5.png

在#include 下加一条using namespace std;

57f2d5de37586dfc44be2a89239f0805.png

78fba0ec5c250eb4dfd88901aee6215f.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值