Bitcoin Forum
November 02, 2024, 10:57:32 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Ошибка при сборке CryptoNote  (Read 139 times)
progof (OP)
Jr. Member
*
Offline Offline

Activity: 157
Merit: 4


View Profile
May 13, 2018, 10:19:43 AM
 #1

Здравствуйте,

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

Linking CXX executable coind
libCommon.a(StringUtils.cpp.o): In function `Common::StringUtils::split(std::string const&, std::vector<std::string, std::allocator<std::string> > const&)':
/root/elspero/src/Common/StringUtils.cpp:46: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_token_iterator(__gnu_cxx::__normal_iterator<char const*, std::string>, __gnu_cxx::__normal_iterator<char const*, std::string>, std::basic_regex<char, std::regex_traits<char> > const&, int, std::bitset<11ul>)'
/root/elspero/src/Common/StringUtils.cpp:47: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_token_iterator()'
/root/elspero/src/Common/StringUtils.cpp:49: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> > const&)'
/root/elspero/src/Common/StringUtils.cpp:49: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> > const&)'
libCommon.a(StringUtils.cpp.o): In function `vector<std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::basic_string<char> > >, void>':
/usr/include/c++/4.8/bits/stl_vector.h:395: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> > const&)'
/usr/include/c++/4.8/bits/stl_vector.h:395: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> > const&)'
libCommon.a(StringUtils.cpp.o): In function `_M_initialize_dispatch<std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::basic_string<char> > > >':
/usr/include/c++/4.8/bits/stl_vector.h:1177: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> > 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 const*, std::string>, char, std::regex_traits<char> >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> > const&)' follow
libCommon.a(StringUtils.cpp.o): In function `__distance<std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::basic_string<char> > > >':
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:82: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::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 const*, std::string>, char, std::regex_traits<char> >::operator!=(std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> > const&)'
libCommon.a(StringUtils.cpp.o): In function `_M_range_initialize<std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::basic_string<char> > > >':
/usr/include/c++/4.8/bits/stl_vector.h:1206: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> > const&)'
/usr/include/c++/4.8/bits/stl_vector.h:1206: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> > const&)'
libCommon.a(StringUtils.cpp.o): In function `__uninitialized_copy_a<std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::basic_string<char> > >, std::basic_string<char>*, std::basic_string<char> >':
/usr/include/c++/4.8/bits/stl_uninitialized.h:258: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> > const&)'
/usr/include/c++/4.8/bits/stl_uninitialized.h:258: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> > const&)'
libCommon.a(StringUtils.cpp.o): In function `uninitialized_copy<std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::basic_string<char> > >, std::basic_string<char>*>':
/usr/include/c++/4.8/bits/stl_uninitialized.h:117: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> > 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 const*, std::string>, char, std::regex_traits<char> >::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> > const&)' follow
libCommon.a(StringUtils.cpp.o): In function `__uninit_copy<std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::basic_string<char> > >, std::basic_string<char>*>':
/usr/include/c++/4.8/bits/stl_uninitialized.h:74: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::operator++()'
/usr/include/c++/4.8/bits/stl_uninitialized.h:74: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::operator!=(std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> > const&)'
/usr/include/c++/4.8/bits/stl_uninitialized.h:75: undefined reference to `std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::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


Может кто-то сталкивался с подобной проблемой, подскажите пожалуйста как ее можно решить?
develnk
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
July 07, 2018, 01:06:54 PM
 #2

Такая ошибка означает что не скомпилировалась какая-то из библиотек, поэтому компилятор пишет undefined reference to.
Обычно нужно смотрет в логи выше, чтобы понять что именно не скомпилировалост должным образом. Либо не правильно линкуются эти же библиотеки. Что и было написано в самом низу: collect2: error: ld returned 1 exit status
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!