Hi,
at the moment I try to compile a project that is using boost on my mac.
The project is using c++11 features so I need to use clang with libstdc++.
I compiled boost with:
|./b2 toolset=clang cxxflags="-stdlib=libc++" linkflags="-stdlib=libc++"
|
It seems that trying to include
"boost/date_time/gregorian/gregorian.hpp" leads to the compile error
below. Googling I found some remarks about char16_t and char32_t types
new in C++-11. Is that compiler/library combination in boost not
supported yet? Has anyone successfully got that combination to work?
Best Regards,
Roman Himmes
In file included from basic_log_setup.cpp:1:
In file included from ./basic_log_setup.hpp:6:
In file included from ../../../cryptotec/cryptotec/base/basic_types.hpp:5:
In file included from
/Users/username/Development/3rdParty/boost_1_53_0/boost/date_time/gregorian/gregorian.hpp:20:
In file included from
/Users/username/Development/3rdParty/boost_1_53_0/boost/date_time/gregorian/gregorian_types.hpp:25:
In file included from
/Users/username/Development/3rdParty/boost_1_53_0/boost/date_time/date_generators.hpp:17:
In file included from /usr/bin/../lib/c++/v1/sstream:175:
/usr/bin/../lib/c++/v1/istream:278:26: error: implicit instantiation of
undefined template 'std::__1::ctype<unsigned int>'
if (!__ct.is(__ct.space, *__i))
^
/usr/bin/../lib/c++/v1/istream:1593:57: note: in instantiation of member
function 'std::__1::basic_istream
(__is.getloc()); ^ /usr/bin/../lib/c++/v1/istream:1593:57: note: in instantiation of member function 'std::__1::basic_istream
::sentry::sentry' requested here typename basic_istream<_CharT, _Traits>::sentry __sen(__is, true); ^ basic_log_setup.cpp:107:2: note: in instantiation of function template specialization 'std::__1::getline ' requested here std::getline(in, out1.codepoints(), separator); ^ /usr/bin/../lib/c++/v1/__locale:388:47: note: template is declared here template <class _CharT> class _LIBCPP_VISIBLE ctype; ^ In file included from basic_log_setup.cpp:1: