|
Boost : |
From: Howard Hinnant (hinnant_at_[hidden])
Date: 2003-03-07 15:49:59
On Thursday, March 6, 2003, at 03:33 AM, Daryle Walker wrote:
> I can't even get that to run. I get the error:
>
> //=================================================================
> Error : undefined identifier 'ptrdiff_t'
> (included from:
> config.hpp:57
> config_info.cpp:10)
> suffix.hpp line 245 namespace std { using ::ptrdiff_t; using
> ::size_t; }
>
> //=================================================================
>
> with the last "ptrdiff_t" highlighted as the problem.
>
> I've attached the project I used, so maybe some Metrowerks expert can
> find the "obvious" thing I forgot (or maybe it's actually a
> misconfiguration, or [worse] a bug).
I'm a Metrowerks expert, but not a boost expert. Your project is set
up to use MSL C which correctly puts ptrdiff_t into namespace std. The
above code can't find ::ptrdiff_t because <cstddef> only defined
std::ptrdiff_t.
It looks to me like BOOST_NO_STDC_NAMESPACE is being mistakenly defined
somewhere.
-Howard
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk