This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Catch-22 with std


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?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]