Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2007-11-01 10:05:07


Simon Atanasyan wrote:
> On 11/1/07, John Maddock <john_at_[hidden]> wrote:
>> Now that the Sun regression tests have started up again (with thanks
>> to Noel Belcourt and Sandia), Boost.Test is failing to build on that
>> platform: see http://tinyurl.com/ywm486 for an example but there are
>> probably other errors as well.
>>
>> I wonder if this is as simple as missing the correct includes?
>> Certainly to use ::perror you would need <stdio.h> rather than
>> <cstdio> (as the latter only defines std::perror). I wonder if this
>> is the cause of not finding snprintf as well?
>
> You are right. To use snprintf you have to include <stdio.h>. Current
> C++ standard does not require to put snprintf into the std namespace
> so Sun C++ does not do that.

Indeed, I've been able to reproduce the issue with Sun's Linux compiler, and
added to change 40639 have added:

# include <sys/time.h>
# include <stdio.h>

To the Unix-specific section of the header. Hopefully that'll fix things on
Solaris as well.

John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk