Boost logo

Boost :

From: Doug Gregor (gregod_at_[hidden])
Date: 2001-03-15 15:27:50


On Thursday 15 March 2001 12:54, you wrote:
> I just installed gcc 2.95.2 with libstdc++ 2.90.8, and I've run into a
> catch-22 with the use of std::. When compiling my programs, if I *don't*
> use -fhonor-std, then I get lots of link errors complaining about
> undefined references to cout, etc. If I *do* compile with -fhonor-std,
> then I get errors with the Boost libraries I'm using
> because those libraries correctly use std::ptrdiff_t, and libstdc++
> erroneously puts ptrdiff_t into the global namespace.
>
> So... any ideas on how to work around this problem?

namespace std {
  import ::ptrdiff_t;
}


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