This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Catch-22 with std
- To: <libstdc++ at gcc dot gnu dot org>, <boost at egroups dot com>
- Subject: Catch-22 with std
- From: "Kevin S. Van Horn" <Kevin_VanHorn at ndsu dot NoDak dot edu>
- Date: Thu, 15 Mar 2001 11:54:32 -0600 (CST)
- Reply-To: <Kevin_VanHorn at ndsu dot nodak dot edu>
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?