This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
c++config.h pollutes the user's namespace
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: c++config.h pollutes the user's namespace
- From: Philip Martin <pm at corris dot dircon dot co dot uk>
- Date: 19 Dec 1999 15:50:05 +0000
Hi
bits/c++config.h pollutes the user's namespace by defining macros such
as HAVE_POWF, PACKAGE and VERSION. Thus the following code does not
compile:
#include <vector>
class X {
int HAVE_POWF;
int VERSION;
};
Names such as _HAVE_POWF, HAVE__POWF, _PACKAGE would be acceptable
alternatives. I am not conversant with autoconf, autoheader, etc. so
I don't know how to go about fixing this. The version of libstdc++
that comes with gcc does not have this problem.
Philip