i try run ./build_linux.sh, but i receive this error:
Code: Select all
Building CXX object pol-core/pol/CMakeFiles/pol.dir/tildecmd.cpp.o
/home/lucas/Documentos/polserver/pol-core/pol/sqlscrobj.cpp: In member function ‘bool Pol::Core::BSQLConnection::query(std::string, Pol::Core::QueryParams)’:
/home/lucas/Documentos/polserver/pol-core/pol/sqlscrobj.cpp:327:100: error: no matching function for call to ‘regex_replace(std::string&, std::regex&, char*&, const match_flag_type&)’
replaced = std::regex_replace(replaced, re, escptr, std::regex_constants::format_first_only);
^
/home/lucas/Documentos/polserver/pol-core/pol/sqlscrobj.cpp:327:100: note: candidates are:
In file included from /usr/include/c++/4.8/regex:62:0,
from /home/lucas/Documentos/polserver/pol-core/pol/sqlscrobj.cpp:33:
/usr/include/c++/4.8/bits/regex.h:2162:5: note: template<class _Out_iter, class _Bi_iter, class _Rx_traits, class _Ch_type> _Out_iter std::regex_replace(_Out_iter, _Bi_iter, _Bi_iter, const std::basic_regex<_Ch_type, _Rx_traits>&, const std::basic_string<_Ch_type>&, std::regex_constants::match_flag_type)
regex_replace(_Out_iter __out, _Bi_iter __first, _Bi_iter __last,
^
/usr/include/c++/4.8/bits/regex.h:2162:5: note: template argument deduction/substitution failed:
/home/lucas/Documentos/polserver/pol-core/pol/sqlscrobj.cpp:327:100: note: deduced conflicting types for parameter ‘_Bi_iter’ (‘std::basic_regex<char>’ and ‘char*’)
replaced = std::regex_replace(replaced, re, escptr, std::regex_constants::format_first_only);
^
In file included from /usr/include/c++/4.8/regex:62:0,
from /home/lucas/Documentos/polserver/pol-core/pol/sqlscrobj.cpp:33:
/usr/include/c++/4.8/bits/regex.h:2182:5: note: template<class _Rx_traits, class _Ch_type> std::basic_string<_Ch_type> std::regex_replace(const std::basic_string<_Ch_type>&, const std::basic_regex<_Ch_type, _Rx_traits>&, const std::basic_string<_Ch_type>&, std::regex_constants::match_flag_type)
regex_replace(const basic_string<_Ch_type>& __s,
^
/usr/include/c++/4.8/bits/regex.h:2182:5: note: template argument deduction/substitution failed:
/home/lucas/Documentos/polserver/pol-core/pol/sqlscrobj.cpp:327:100: note: mismatched types ‘const std::basic_string<_Ch_type>’ and ‘char*’
replaced = std::regex_replace(replaced, re, escptr, std::regex_constants::format_first_only);
^
make[2]: ** [pol-core/pol/CMakeFiles/pol.dir/sqlscrobj.cpp.o] Erro 1
make[2]: ** Esperando que outros processos terminem.
make[1]: ** [pol-core/pol/CMakeFiles/pol.dir/all] Erro 2
make: ** [all] Erro 2
Thanks