Author

Topic: Ошибка при сборке CryptoNote (Read 145 times)

newbie
Activity: 59
Merit: 0
July 07, 2018, 08:06:54 AM
#2
Такая ошибка означает что не скомпилировалась какая-то из библиотек, поэтому компилятор пишет undefined reference to.
Обычно нужно смотрет в логи выше, чтобы понять что именно не скомпилировалост должным образом. Либо не правильно линкуются эти же библиотеки. Что и было написано в самом низу: collect2: error: ld returned 1 exit status
jr. member
Activity: 157
Merit: 4
Здравствуйте,

Собираю монету на CryptoNote и когда доходит до компиляции самого демона появляется эта ошибка

Linking CXX executable coind
libCommon.a(StringUtils.cpp.o): In function `Common::StringUtils::split(std::string const&, std::vector > const&)':
/root/elspero/src/Common/StringUtils.cpp:46: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::regex_token_iterator(__gnu_cxx::__normal_iterator, __gnu_cxx::__normal_iterator, std::basic_regex > const&, int, std::bitset<11ul>)'
/root/elspero/src/Common/StringUtils.cpp:47: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::regex_token_iterator()'
/root/elspero/src/Common/StringUtils.cpp:49: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits > const&)'
/root/elspero/src/Common/StringUtils.cpp:49: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits > const&)'
libCommon.a(StringUtils.cpp.o): In function `vector > >, void>':
/usr/include/c++/4.8/bits/stl_vector.h:395: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits > const&)'
/usr/include/c++/4.8/bits/stl_vector.h:395: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits > const&)'
libCommon.a(StringUtils.cpp.o): In function `_M_initialize_dispatch > > >':
/usr/include/c++/4.8/bits/stl_vector.h:1177: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits > const&)'
libCommon.a(StringUtils.cpp.o):/usr/include/c++/4.8/bits/stl_vector.h:1177: more undefined references to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits > const&)' follow
libCommon.a(StringUtils.cpp.o): In function `__distance > > >':
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:82: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::operator++()'
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:80: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::operator!=(std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits > const&)'
libCommon.a(StringUtils.cpp.o): In function `_M_range_initialize > > >':
/usr/include/c++/4.8/bits/stl_vector.h:1206: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits > const&)'
/usr/include/c++/4.8/bits/stl_vector.h:1206: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits > const&)'
libCommon.a(StringUtils.cpp.o): In function `__uninitialized_copy_a > >, std::basic_string*, std::basic_string >':
/usr/include/c++/4.8/bits/stl_uninitialized.h:258: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits > const&)'
/usr/include/c++/4.8/bits/stl_uninitialized.h:258: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits > const&)'
libCommon.a(StringUtils.cpp.o): In function `uninitialized_copy > >, std::basic_string*>':
/usr/include/c++/4.8/bits/stl_uninitialized.h:117: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits > const&)'
libCommon.a(StringUtils.cpp.o):/usr/include/c++/4.8/bits/stl_uninitialized.h:117: more undefined references to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits > const&)' follow
libCommon.a(StringUtils.cpp.o): In function `__uninit_copy > >, std::basic_string*>':
/usr/include/c++/4.8/bits/stl_uninitialized.h:74: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::operator++()'
/usr/include/c++/4.8/bits/stl_uninitialized.h:74: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::operator!=(std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits > const&)'
/usr/include/c++/4.8/bits/stl_uninitialized.h:75: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator, char, std::regex_traits >::operator*()'
collect2: error: ld returned 1 exit status
make[2]: *** [src/coind] Error 1
make[1]: *** [src/CMakeFiles/Daemon.dir/all] Error 2
make: *** [all] Error 2


Может кто-то сталкивался с подобной проблемой, подскажите пожалуйста как ее можно решить?
Jump to: