undefined reference to symbol '__cxa_call_unexpected@@CXXABI_1.3'

86 views
Skip to first unread message

Юрий Жаворонков

unread,
May 29, 2018, 4:55:15 AM5/29/18
to Caffe Users
собственно текст ошибки: 
/usr/bin/ld: CMakeFiles/create_label_map.dir/create_label_map.cpp.o: undefined reference to symbol '__cxa_call_unexpected@@CXXABI_1.3'
//usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
tools/CMakeFiles/create_label_map.dir/build.make:127: recipe for target 'tools/create_label_map' failed
make[2]: *** [tools/create_label_map] Error 1
CMakeFiles/Makefile2:479: recipe for target 'tools/CMakeFiles/create_label_map.dir/all' failed
make[1]: *** [tools/CMakeFiles/create_label_map.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 83%] Linking CXX executable convert_imageset
/usr/bin/ld: CMakeFiles/convert_imageset.dir/convert_imageset.cpp.o: undefined reference to symbol '_ZTVN10__cxxabiv117__class_type_infoE@@CXXABI_1.3'
//usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
tools/CMakeFiles/convert_imageset.dir/build.make:127: recipe for target 'tools/convert_imageset' failed
make[2]: *** [tools/convert_imageset] Error 1
CMakeFiles/Makefile2:441: recipe for target 'tools/CMakeFiles/convert_imageset.dir/all' failed
make[1]: *** [tools/CMakeFiles/convert_imageset.dir/all] Error 2

Компилятор выставлен gcc-6 (тк 7 не дружит с CUDA 9.1).
Пробовал: 
target_link_libraries(-lstdc++) в cmake
-std=c++11
-static-libstdc++
 
Без толку, как победить это? 
 
 

Reply all
Reply to author
Forward
0 new messages