Boost logo

Boost Users :

Subject: Re: [Boost-users] [chrono] Compilation with MinGW/gcc 4.4.0
From: Richard Hazlewood (boost_at_[hidden])
Date: 2011-10-14 04:31:44


Vicente J. Botet Escriba <vicente.botet <at> wanadoo.fr> writes:

>
> Le 13/10/11 17:20, Richard Hazlewood a écrit :
> > I've been trying to compile the chrono "hello world" example with MinGW/GCC
> > 4.4.0, but it fails.
> >
> >
> could you post the compiler command ?

Excluding the usual include/output specs:
  "-c -g -frtti -fexceptions -mthreads -Wall"

Adding the "-std=c++0x" argument results in a successful compilation, as long
as "__STRICT_ANSI__" is not defined
(http://stackoverflow.com/questions/3445312/swprintf-and-vswprintf-not-
declared).

HTH.


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