This is the mail archive of the gcc-help@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]
Other format: [Raw text]

wchar support :(


Hi all -

I'm not sure if this is a problem stemming from gcc or from libstdc++
(are these separate enteties?).

Basically, in gcc3.4.5, I have the following symbol defined:

#define _GLIBCXX_USE_WCHAR_T 1
(in c++config.h)

The symbol is NOT defined when I use gcc4.1.

Looking at c++config.h, several new defines have been introduced in
g++-v4 stdlib, but
_GLIBCXX_USE_WCHAR_T is missing.

The libstdc++ still considers the symbol several places during
preprocessing, but the net effect is that wchar support is just gone.

I believe this stems somehow from the compiler because I use the same
version of libstdc++ for both gcc4.1 and gcc3.4.5.

Anybody know of a fix for this? (It seems to me that if the symbol
_GLIBCXX_USE_WCHAR_T is defined at compilation time of libstdc++, all
will be well, but I haven't a clue how the c++config.h file is
generated).

Thanks,
 Brian


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