compilation with -flto in CFLAGS fails
Bug #622348 reported by
Karel vd Star
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qBittorrent |
Incomplete
|
Undecided
|
Christophe Dumez |
Bug Description
gcc version 4.5.1
To post a comment you must log in.
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 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: 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) ’: boost/date_ time/date_ formatting. hpp:87: 36: error: cannot call constructor ‘std::locale: :locale’ directly boost/date_ time/date_ formatting. hpp:87: 36: error: for a function-style cast, remove the redundant ‘::locale’
In file included from //usr/include/
//usr/include/
//usr/include/
//usr/include/
Are you having the exact same error? If so, please contact boost developers about it. The error is in their code, not mine.