I firstly use yaml-cpp library and meet some error when building.
"
In function YAML::BadConversion::BadConversion(YAML::Mark const&)': /usr/local/include/yaml-cpp/exceptions.h:206: undefined reference tovtable for YAML::BadConversion'
CMakeFiles/joint_map.dir/src/joint_map.cpp.o: In function YAML::Node::Scalar[abi:cxx11]() const': /usr/local/include/yaml-cpp/node/impl.h:159: undefined reference toYAML::detail::node_data::empty_scalar[abi:cxx11]()'
CMakeFiles/joint_map.dir/src/joint_map.cpp.o: In function YAML::TypedBadConversion<int>::~TypedBadConversion()': /usr/local/include/yaml-cpp/exceptions.h:212: undefined reference toYAML::BadConversion::~BadConversion()'
CMakeFiles/joint_map.dir/src/joint_map.cpp.o: In function YAML::TypedBadConversion<double>::~TypedBadConversion()': /usr/local/include/yaml-cpp/exceptions.h:212: undefined reference toYAML::BadConversion::~BadConversion()'
CMakeFiles/joint_map.dir/src/joint_map.cpp.o: In function YAML::TypedBadConversion<Joint>::~TypedBadConversion()': /usr/local/include/yaml-cpp/exceptions.h:212: undefined reference toYAML::BadConversion::~BadConversion()'
CMakeFiles/joint_map.dir/src/joint_map.cpp.o: In function YAML::TypedBadConversion<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::~TypedBadConversion()': /usr/local/include/yaml-cpp/exceptions.h:212: undefined reference toYAML::BadConversion::~BadConversion()'
CMakeFiles/joint_map.dir/src/joint_map.cpp.o:(.rodata._ZTIN4YAML18TypedBadConversionI5JointEE[_ZTIN4YAML18TypedBadConversionI5JointEE]+0x10): undefined reference to typeinfo for YAML::BadConversion' CMakeFiles/joint_map.dir/src/joint_map.cpp.o:(.rodata._ZTIN4YAML18TypedBadConversionIdEE[_ZTIN4YAML18TypedBadConversionIdEE]+0x10): undefined reference totypeinfo for YAML::BadConversion'
CMakeFiles/joint_map.dir/src/joint_map.cpp.o:(.rodata._ZTIN4YAML18TypedBadConversionIiEE[_ZTIN4YAML18TypedBadConversionIiEE]+0x10): undefined reference to typeinfo for YAML::BadConversion' CMakeFiles/joint_map.dir/src/joint_map.cpp.o:(.rodata._ZTIN4YAML18TypedBadConversionINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE[_ZTIN4YAML18TypedBadConversionINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE]+0x10): undefined reference totypeinfo for YAML::BadConversion'
collect2: error: ld returned 1 exit status
"
could you give me some advices about this error
ubuntu OS version: 16.04 ros version:kinetic
I firstly use yaml-cpp library and meet some error when building. " In function
YAML::BadConversion::BadConversion(YAML::Mark const&)': /usr/local/include/yaml-cpp/exceptions.h:206: undefined reference to
vtable for YAML::BadConversion' CMakeFiles/joint_map.dir/src/joint_map.cpp.o: In functionYAML::Node::Scalar[abi:cxx11]() const': /usr/local/include/yaml-cpp/node/impl.h:159: undefined reference to
YAML::detail::node_data::empty_scalar[abi:cxx11]()' CMakeFiles/joint_map.dir/src/joint_map.cpp.o: In functionYAML::TypedBadConversion<int>::~TypedBadConversion()': /usr/local/include/yaml-cpp/exceptions.h:212: undefined reference to
YAML::BadConversion::~BadConversion()' CMakeFiles/joint_map.dir/src/joint_map.cpp.o: In functionYAML::TypedBadConversion<double>::~TypedBadConversion()': /usr/local/include/yaml-cpp/exceptions.h:212: undefined reference to
YAML::BadConversion::~BadConversion()' CMakeFiles/joint_map.dir/src/joint_map.cpp.o: In functionYAML::TypedBadConversion<Joint>::~TypedBadConversion()': /usr/local/include/yaml-cpp/exceptions.h:212: undefined reference to
YAML::BadConversion::~BadConversion()' CMakeFiles/joint_map.dir/src/joint_map.cpp.o: In functionYAML::TypedBadConversion<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::~TypedBadConversion()': /usr/local/include/yaml-cpp/exceptions.h:212: undefined reference to
YAML::BadConversion::~BadConversion()' CMakeFiles/joint_map.dir/src/joint_map.cpp.o:(.rodata._ZTIN4YAML18TypedBadConversionI5JointEE[_ZTIN4YAML18TypedBadConversionI5JointEE]+0x10): undefined reference totypeinfo for YAML::BadConversion' CMakeFiles/joint_map.dir/src/joint_map.cpp.o:(.rodata._ZTIN4YAML18TypedBadConversionIdEE[_ZTIN4YAML18TypedBadConversionIdEE]+0x10): undefined reference to
typeinfo for YAML::BadConversion' CMakeFiles/joint_map.dir/src/joint_map.cpp.o:(.rodata._ZTIN4YAML18TypedBadConversionIiEE[_ZTIN4YAML18TypedBadConversionIiEE]+0x10): undefined reference totypeinfo for YAML::BadConversion' CMakeFiles/joint_map.dir/src/joint_map.cpp.o:(.rodata._ZTIN4YAML18TypedBadConversionINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE[_ZTIN4YAML18TypedBadConversionINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE]+0x10): undefined reference to
typeinfo for YAML::BadConversion' collect2: error: ld returned 1 exit status " could you give me some advices about this error