linux下程序编译出错解决方法

时间:2024-10-14 23:33:26

*** 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中某一行缺少括号。

 三

linux下程序编译出错解决方法

在#include <string> 下加一条using namespace std;

linux下程序编译出错解决方法

linux下程序编译出错解决方法