Boost logo

Boost :

From: Lapshin, Kirill (Kirill.Lapshin_at_[hidden])
Date: 2003-10-30 16:07:57


On CygWin GCC 3.3.1 date_time library compiles with many stdint related
warnings. Offending code is in
boost/date_time/posix_time/posix_time_config.hpp, here is the snippet:

                //force the definition of INT64_C macro used in
                #ifndef __STDC_CONSTANT_MACROS
                #define __STDC_CONSTANT_MACROS
                # if __GNUC__ >= 2
                # undef BOOST_HAS_STDINT_H
                # endif
                #include "boost/cstdint.hpp"

Undefining BOOST_HAS_STDINT_H leads to numerous macros redefinition warnings
(essentially macros defined in stdint, are redefined in boost/cstdint).

This behavior observed on latest CVS. On 1.30.02 situation is even worth -
library fails to compile because there is no boost::uint32_t type defined
(the error triggered in microsec_time_clock.hpp).


Kirill Lapshin

Boost list run by bdawes at, gregod at, cpdaniel at, john at