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


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

bastring.cc



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


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