问题相关代码,请勿粘贴截图
Base path: /home/qi/catkin_ws
Source space: /home/qi/catkin_ws/src
Build space: /home/qi/catkin_ws/build
Devel space: /home/qi/catkin_ws/devel
Install space: /home/qi/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/qi/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/qi/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/qi/catkin_ws/devel;/opt/ros/melodic
-- This workspace overlays: /home/qi/catkin_ws/devel;/opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2")
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/qi/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.17")
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.29
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 2 packages in topological order:
-- ~~ - test_pkg
-- ~~ - learning_topic
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'test_pkg'
-- ==> add_subdirectory(test_pkg)
-- +++ processing catkin package: 'learning_topic'
-- ==> add_subdirectory(learning_topic)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/qi/catkin_ws/build
####
#### Running command: "make -j8 -l8" in "/home/qi/catkin_ws/build"
####
Scanning dependencies of target pose_subscriber
Scanning dependencies of target velocity_publisher
[ 25%] Building CXX object learning_topic/CMakeFiles/velocity_publisher.dir/src/velocity_publisher.cpp.o
[ 50%] Building CXX object learning_topic/CMakeFiles/pose_subscriber.dir/src/pose_subscriber.cpp.o
[ 75%] Linking CXX executable /home/qi/catkin_ws/devel/lib/learning_topic/velocity_publisher
CMakeFiles/velocity_publisher.dir/src/velocity_publisher.cpp.o:在函数‘main’中:
velocity_publisher.cpp:(.text+0x72):对‘ros::init(int&, char**, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)’未定义的引用
velocity_publisher.cpp:(.text+0x104):对‘ros::NodeHandle::NodeHandle(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&)’未定义的引用
velocity_publisher.cpp:(.text+0x1b9):对‘ros::Rate::Rate(double)’未定义的引用
velocity_publisher.cpp:(.text+0x1c8):对‘ros::ok()’未定义的引用
velocity_publisher.cpp:(.text+0x21f):对‘ros::console::g_initialized’未定义的引用
velocity_publisher.cpp:(.text+0x22f):对‘ros::console::initialize()’未定义的引用
velocity_publisher.cpp:(.text+0x288):对‘ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)’未定义的引用
velocity_publisher.cpp:(.text+0x2cb):对‘ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)’未定义的引用
velocity_publisher.cpp:(.text+0x2d7):对‘ros::console::checkLogLocationEnabled(ros::console::LogLocation*)’未定义的引用
velocity_publisher.cpp:(.text+0x354):对‘ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)’未定义的引用
velocity_publisher.cpp:(.text+0x367):对‘ros::Rate::sleep()’未定义的引用
velocity_publisher.cpp:(.text+0x38f):对‘ros::Publisher::~Publisher()’未定义的引用
velocity_publisher.cpp:(.text+0x39e):对‘ros::NodeHandle::~NodeHandle()’未定义的引用
velocity_publisher.cpp:(.text+0x48b):对‘ros::Publisher::~Publisher()’未定义的引用
velocity_publisher.cpp:(.text+0x49a):对‘ros::NodeHandle::~NodeHandle()’未定义的引用
CMakeFiles/velocity_publisher.dir/src/velocity_publisher.cpp.o:在函数‘ros::Publisher ros::NodeHandle::advertise<geometry_msgs::Twist_<std::allocator<void> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, bool)’中:
velocity_publisher.cpp:(.text._ZN3ros10NodeHandle9advertiseIN13geometry_msgs6Twist_ISaIvEEEEENS_9PublisherERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjb[_ZN3ros10NodeHandle9advertiseIN13geometry_msgs6Twist_ISaIvEEEEENS_9PublisherERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjb]+0xdd):对‘ros::NodeHandle::advertise(ros::AdvertiseOptions&)’未定义的引用
CMakeFiles/velocity_publisher.dir/src/velocity_publisher.cpp.o:在函数‘void ros::Publisher::publish<geometry_msgs::Twist_<std::allocator<void> > >(geometry_msgs::Twist_<std::allocator<void> > const&) const’中:
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x47):对‘ros::console::g_initialized’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x57):对‘ros::console::initialize()’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0xaa):对‘ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0xea):对‘ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0xf6):对‘ros::console::checkLogLocationEnabled(ros::console::LogLocation*)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x15f):对‘ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x16a):对‘ros::console::g_initialized’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x17a):对‘ros::console::initialize()’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x1cd):对‘ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x20d):对‘ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x219):对‘ros::console::checkLogLocationEnabled(ros::console::LogLocation*)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x274):对‘ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x27f):对‘ros::console::g_initialized’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x28f):对‘ros::console::initialize()’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x2e2):对‘ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x322):对‘ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x32e):对‘ros::console::checkLogLocationEnabled(ros::console::LogLocation*)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x389):对‘ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x3aa):对‘ros::Publisher::Impl::isValid() const’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x3bc):对‘ros::console::g_initialized’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x3cc):对‘ros::console::initialize()’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x41f):对‘ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x45f):对‘ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x46b):对‘ros::console::checkLogLocationEnabled(ros::console::LogLocation*)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x4d4):对‘ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x4df):对‘ros::console::g_initialized’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x4ef):对‘ros::console::initialize()’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x542):对‘ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x582):对‘ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x58e):对‘ros::console::checkLogLocationEnabled(ros::console::LogLocation*)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x600):对‘ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x60b):对‘ros::console::g_initialized’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x61b):对‘ros::console::initialize()’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x66e):对‘ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x6ae):对‘ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x6ba):对‘ros::console::checkLogLocationEnabled(ros::console::LogLocation*)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x715):对‘ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x823):对‘ros::console::g_initialized’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x833):对‘ros::console::initialize()’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x886):对‘ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x8c5):对‘ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x8d1):对‘ros::console::checkLogLocationEnabled(ros::console::LogLocation*)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0x9b3):对‘ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)’未定义的引用
velocity_publisher.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0xa45):对‘ros::Publisher::publish(boost::function<ros::SerializedMessage ()> const&, ros::SerializedMessage&) const’未定义的引用
CMakeFiles/velocity_publisher.dir/src/velocity_publisher.cpp.o:在函数‘void ros::serialization::Serializer<unsigned int>::write<ros::serialization::OStream>(ros::serialization::OStream&, unsigned int)’中:
velocity_publisher.cpp:(.text._ZN3ros13serialization10SerializerIjE5writeINS0_7OStreamEEEvRT_j[_ZN3ros13serialization10SerializerIjE5writeINS0_7OStreamEEEvRT_j]+0x52):对‘ros::serialization::throwStreamOverrun()’未定义的引用
CMakeFiles/velocity_publisher.dir/src/velocity_publisher.cpp.o:在函数‘void ros::serialization::Serializer<double>::write<ros::serialization::OStream>(ros::serialization::OStream&, double)’中:
velocity_publisher.cpp:(.text._ZN3ros13serialization10SerializerIdE5writeINS0_7OStreamEEEvRT_d[_ZN3ros13serialization10SerializerIdE5writeINS0_7OStreamEEEvRT_d]+0x54):对‘ros::serialization::throwStreamOverrun()’未定义的引用
collect2: error: ld returned 1 exit status
learning_topic/CMakeFiles/velocity_publisher.dir/build.make:94: recipe for target '/home/qi/catkin_ws/devel/lib/learning_topic/velocity_publisher' failed
make[2]: *** [/home/qi/catkin_ws/devel/lib/learning_topic/velocity_publisher] Error 1
CMakeFiles/Makefile2:1023: recipe for target 'learning_topic/CMakeFiles/velocity_publisher.dir/all' failed
make[1]: *** [learning_topic/CMakeFiles/velocity_publisher.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
[100%] Linking CXX executable /home/qi/catkin_ws/devel/lib/learning_topic/pose_subscriber
CMakeFiles/pose_subscriber.dir/src/pose_subscriber.cpp.o:在函数‘poseCallback(boost::shared_ptr<turtlesim::Pose_<std::allocator<void> > const> const&)’中:
pose_subscriber.cpp:(.text+0x1f):对‘ros::console::g_initialized’未定义的引用
pose_subscriber.cpp:(.text+0x2f):对‘ros::console::initialize()’未定义的引用
pose_subscriber.cpp:(.text+0x7c):对‘ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)’未定义的引用
pose_subscriber.cpp:(.text+0xb9):对‘ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)’未定义的引用
pose_subscriber.cpp:(.text+0xc5):对‘ros::console::checkLogLocationEnabled(ros::console::LogLocation*)’未定义的引用
pose_subscriber.cpp:(.text+0x151):对‘ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)’未定义的引用
CMakeFiles/pose_subscriber.dir/src/pose_subscriber.cpp.o:在函数‘main’中:
pose_subscriber.cpp:(.text+0x213):对‘ros::init(int&, char**, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)’未定义的引用
pose_subscriber.cpp:(.text+0x2a5):对‘ros::NodeHandle::NodeHandle(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&)’未定义的引用
pose_subscriber.cpp:(.text+0x3c6):对‘ros::spin()’未定义的引用
pose_subscriber.cpp:(.text+0x3da):对‘ros::Subscriber::~Subscriber()’未定义的引用
pose_subscriber.cpp:(.text+0x3e9):对‘ros::NodeHandle::~NodeHandle()’未定义的引用
pose_subscriber.cpp:(.text+0x4a9):对‘ros::Subscriber::~Subscriber()’未定义的引用
pose_subscriber.cpp:(.text+0x4b8):对‘ros::NodeHandle::~NodeHandle()’未定义的引用
CMakeFiles/pose_subscriber.dir/src/pose_subscriber.cpp.o:在函数‘ros::Subscriber ros::NodeHandle::subscribe<turtlesim::Pose_<std::allocator<void> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, void (*)(boost::shared_ptr<turtlesim::Pose_<std::allocator<void> > const> const&), ros::TransportHints const&)’中:
pose_subscriber.cpp:(.text._ZN3ros10NodeHandle9subscribeIN9turtlesim5Pose_ISaIvEEEEENS_10SubscriberERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjPFvRKN5boost10shared_ptrIKT_EEERKNS_14TransportHintsE[_ZN3ros10NodeHandle9subscribeIN9turtlesim5Pose_ISaIvEEEEENS_10SubscriberERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjPFvRKN5boost10shared_ptrIKT_EEERKNS_14TransportHintsE]+0x115):对‘ros::NodeHandle::subscribe(ros::SubscribeOptions&)’未定义的引用
CMakeFiles/pose_subscriber.dir/src/pose_subscriber.cpp.o:在函数‘ros::SubscriptionCallbackHelperT<boost::shared_ptr<turtlesim::Pose_<std::allocator<void> > const> const&, void>::deserialize(ros::SubscriptionCallbackHelperDeserializeParams const&)’中:
pose_subscriber.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN9turtlesim5Pose_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN9turtlesim5Pose_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x61):对‘ros::console::g_initialized’未定义的引用
pose_subscriber.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN9turtlesim5Pose_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN9turtlesim5Pose_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x71):对‘ros::console::initialize()’未定义的引用
pose_subscriber.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN9turtlesim5Pose_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN9turtlesim5Pose_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0xbe):对‘ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)’未定义的引用
pose_subscriber.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN9turtlesim5Pose_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN9turtlesim5Pose_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0xfa):对‘ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)’未定义的引用
pose_subscriber.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN9turtlesim5Pose_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN9turtlesim5Pose_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x106):对‘ros::console::checkLogLocationEnabled(ros::console::LogLocation*)’未定义的引用
pose_subscriber.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN9turtlesim5Pose_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN9turtlesim5Pose_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x180):对‘ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)’未定义的引用
CMakeFiles/pose_subscriber.dir/src/pose_subscriber.cpp.o:在函数‘void ros::serialization::Serializer<float>::read<ros::serialization::IStream>(ros::serialization::IStream&, float&)’中:
pose_subscriber.cpp:(.text._ZN3ros13serialization10SerializerIfE4readINS0_7IStreamEEEvRT_Rf[_ZN3ros13serialization10SerializerIfE4readINS0_7IStreamEEEvRT_Rf]+0x53):对‘ros::serialization::throwStreamOverrun()’未定义的引用
collect2: error: ld returned 1 exit status
learning_topic/CMakeFiles/pose_subscriber.dir/build.make:94: recipe for target '/home/qi/catkin_ws/devel/lib/learning_topic/pose_subscriber' failed
make[2]: *** [/home/qi/catkin_ws/devel/lib/learning_topic/pose_subscriber] Error 1
CMakeFiles/Makefile2:1380: recipe for target 'learning_topic/CMakeFiles/pose_subscriber.dir/all' failed
make[1]: *** [learning_topic/CMakeFiles/pose_subscriber.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed