Увеличить регулярное выражение неопределенной ссылки - PullRequest
0 голосов
/ 16 мая 2019

Я пытаюсь установить библиотеки Boost C ++, но я получаю следующую ошибку при попытке скомпилировать свою программу:

/usr/local/include/boost/regex/v4/perl_matcher.hpp:386: undefined reference to `boost::re_detail_106700::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)'
collect2: error: ld returned 1 exit status
makefile:204: recipe for target 'BOF-debug-static' failed
make: *** [BOF-debug-static] Error 1

Я не знаю, что означает эта ошибка. Мне нужно использовать библиотеку mysqlcppconn, поэтому, когда я установил ее через sudo apt-get install libmysqlcppconn-dev, в качестве зависимости требовался Boost 1.65. Из-за этого я установил Boost 1.65 вместо здесь вместо последней. Я использую библиотеки boost_program_options, boost_filesystem, boost_system и boost_regex. В моем основном файле у меня есть #include <boost/program_options.hpp>, #include <boost/filesystem.hpp>, #include <boost/lexical_cast.hpp> и #include <boost/process.hpp>.

...