Hi there!
I am quite a newbie on Mac platform and trying to port my code working under Windows and Linux to Yosemite.
I use QtCreator (with Clang) as an IDE and Boost from brew for regex operations. Everything compile fine but linking produce errors for symbols like this:
boost::re_detail:: 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)
I checked contents of Boost library and didn't see any symbols with __normal_iterator in place.
Looks like brew's Boost compiled with _wrap_iter instead of __normal_iterator.
I suspect what it is just a matter of different compilers or C++ specs used but doesn't know much about MacOS environment. My system's g++ currently linked to Clang. I suppose it is possible to use GNU compiler instead and different possibility for std lib too.
Can anyone recommend a way out from this situation? Any clue?
I am quite a newbie on Mac platform and trying to port my code working under Windows and Linux to Yosemite.
I use QtCreator (with Clang) as an IDE and Boost from brew for regex operations. Everything compile fine but linking produce errors for symbols like this:
boost::re_detail:: 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)
I checked contents of Boost library and didn't see any symbols with __normal_iterator in place.
Looks like brew's Boost compiled with _wrap_iter instead of __normal_iterator.
I suspect what it is just a matter of different compilers or C++ specs used but doesn't know much about MacOS environment. My system's g++ currently linked to Clang. I suppose it is possible to use GNU compiler instead and different possibility for std lib too.
Can anyone recommend a way out from this situation? Any clue?