Comment 1 for bug 622348

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Having the error message sure would help.

I have just installed g++ 4.5.1 and added -flto to CFLAGS and I got the following error:

I. -I. -o searchengine.o searchengine.cpp
In file included from //usr/include/boost/date_time/gregorian/formatters.hpp:17:0,
                 from //usr/include/boost/date_time/gregorian/gregorian.hpp:25,
                 from //usr/include/boost/date_time/posix_time/time_formatters.hpp:12,
                 from //usr/include/boost/date_time/posix_time/posix_time.hpp:24,
                 from //usr/include/libtorrent/create_torrent.hpp:55,
                 from createtorrent_imp.cpp:48:
//usr/include/boost/date_time/date_formatting.hpp: In static member function ‘static std::basic_string<charT> boost::date_time::ymd_formatter<ymd_type, format_type, charT>::ymd_to_string(ymd_type)’:
//usr/include/boost/date_time/date_formatting.hpp:87:36: error: cannot call constructor ‘std::locale::locale’ directly
//usr/include/boost/date_time/date_formatting.hpp:87:36: error: for a function-style cast, remove the redundant ‘::locale’

Are you having the exact same error? If so, please contact boost developers about it. The error is in their code, not mine.