|
Boost Users : |
Subject: [Boost-users] [chrono] Compilation with MinGW/gcc 4.4.0
From: Richard Hazlewood (boost_at_[hidden])
Date: 2011-10-13 11:20:14
I've been trying to compile the chrono "hello world" example with MinGW/GCC
4.4.0, but it fails.
I then tried to compile the tests, and saw similar errors.
The docs say this compiler is supported, has anyone else tried this?
Here's the error chain:
.\boost_1_47_0/boost/type_traits/common_type.hpp: At global scope:
.\boost_1_47_0/boost/type_traits/common_type.hpp: In instantiation
of 'boost::common_type<double, long long int, long long int>':
.\boost_1_47_0/boost/chrono/duration.hpp:252: instantiated from 'ToDuration
boost::chrono::detail::duration_cast_aux<FromDuration, ToDuration, Period,
true, false>::operator()(const FromDuration&) const [with FromDuration =
boost::chrono::duration<long long int, boost::ratio<1ll, 10000000ll> >,
ToDuration = boost::chrono::duration<double, boost::ratio<1ll, 1ll> >, Period
= boost::ratio<1ll, 10000000ll>]'
.\boost_1_47_0/boost/chrono/duration.hpp:311: instantiated from 'ToDuration
boost::chrono::detail::duration_cast<FromDuration, ToDuration>::operator()
(const FromDuration&) const [with FromDuration = boost::chrono::duration<long
long int, boost::ratio<1ll, 10000000ll> >, ToDuration =
boost::chrono::duration<double, boost::ratio<1ll, 1ll> >]'
.\boost_1_47_0/boost/chrono/duration.hpp:472: instantiated
from 'boost::chrono::duration<Rep, Period>::duration(const
boost::chrono::duration<Rep2, Period2>&, typename
boost::enable_if<boost::mpl::or_<boost::chrono::treat_as_floating_point<Rep>,
boost::mpl::and_<boost::chrono::chrono_detail::is_evenly_divisible_by<Period2,
Period>, boost::mpl::not_<boost::chrono::treat_as_floating_point<Rep2> >,
mpl_::bool_<true>, mpl_::bool_<true>, mpl_::bool_<true> >, mpl_::bool_<false>,
mpl_::bool_<false>, mpl_::bool_<false> >, void>::type*) [with Rep2 = long long
int, Period2 = boost::ratio<1ll, 10000000ll>, Rep = double, Period =
boost::ratio<1ll, 1ll>]'
...\test.cpp:96: instantiated from here
.\boost_1_47_0/boost/type_traits/common_type.hpp:77: error: no type
named 'type' in 'struct boost::common_type<double, long long int, void>'
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net