ubuntu使用cmake报错形式:
CMakeFiles/finder.dir/finder_udp.cpp.o:(.bss+0x0): `m_[abi:cxx11]'被多次定义
CMakeFiles/finder.dir/finder.cpp.o:(.bss+0x0):第一次在此定义
collect2: error: ld returned 1 exit status
CMakeFiles/finder.dir/build.make:276: recipe for target 'finder' failed
make[2]: *** [finder] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/finder.dir/all' failed
make[1]: *** [CMakeFiles/finder.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Windows10使用cmake报错形式:
finder_udp.obj : error LNK2005: "class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class DevInfo,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_trai