vendredi 19 juin 2020

The library Boost return error when compile [closed]

I have installed boost library from homebrew and configured xcode to recognize it, but when I compile the program I get errors within the boost itself :(

Semantic Issue:

/usr/local/Cellar/boost/1.72.0_3/include/boost/algorithm/string/replace.hpp:705:71: Invalid operands to binary expression ('const std::__1::basic_string<char>' and 'const char')
/usr/local/Cellar/boost/1.72.0_3/include/boost/algorithm/string/replace.hpp:702:71: Invalid operands to binary expression ('const char' and 'const std::__1::basic_string<char>')
/usr/local/Cellar/boost/1.72.0_3/include/boost/range/size.hpp:49:17: Member reference type 'const std::__1::basic_string<char> *' is a pointer; did you mean to use '->'?
/usr/local/Cellar/boost/1.72.0_3/include/boost/range/size.hpp:49:16: No viable conversion from returned value of type 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::const_iterator' (aka '__wrap_iter<const char *>') to function return type 'typename range_iterator<const basic_string<char> *>::type' (aka 'const std::__1::basic_string<char> *')
/usr/local/Cellar/boost/1.72.0_3/include/boost/range/size.hpp:50:21: Member reference type 'const std::__1::basic_string<char> *' is a pointer; did you mean to use '->'?
/usr/local/Cellar/boost/1.72.0_3/include/boost/range/size.hpp:50:20: No viable conversion from returned value of type 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::const_iterator' (aka '__wrap_iter<const char *>') to function return type 'typename range_iterator<const basic_string<char> *>::type' (aka 'const std::__1::basic_string<char> *')
/usr/local/Cellar/boost/1.72.0_3/include/boost/algorithm/string/replace.hpp:2065:22: No matching member function for call to 'assign'

Do you know what may be happening? Could it be from the Xcode compiler (I don't know how I can change the xcode compiler?

Aucun commentaire:

Enregistrer un commentaire