This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
bastring.cc
- To: jason at cygnus dot com, drepper at cygnus dot com
- Subject: bastring.cc
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 23 Aug 1998 02:04:48 -0600
- Cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
Is user code supposed to be able to include this file directly?
If yes, is bastring.cc supposed to handle multiple inclusions?
guavac in the RedHat 5.1 distribution doesn't build because the
compiler chokes because bastring.cc gets included twice. The compiler
complains about redefinitions of stuff defined in bastring.cc.
This happens because common/unicode_string.h includes "cppstring.h"
which includes "string", which includes "bastring.h", which
includes "bastring.cc".
common/unicode_string.h then proceeds to include "bastring.cc" on
its own.
jeff