This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: wstring in 3.0.4


On Thu, Apr 18, 2002 at 07:30:18PM +0200, Mads wrote:
> 
> I'm testing gcc 3.0.4 on RedHat Linux 6.2, AIX 4.3.3 and Solaris 2.7.
[...]
> On all platforms I have problems with wstring support. From the headerfiles
> I can see that _GLIBCPP_USE_WCHAR_T must be defined to enable wchar_t and
> thus wstring.

Yes, but you aren't supposed to enable it yourself.

See

    http://gcc.gnu.org/onlinedocs/libstdc++/17_intro/howto.html#6

for which preprocessor macros you're allowed to change.

You can look in c++config.h in your installation directory to see whether
_GLIBCPP_USE_WCHAR_T is enabled or not.  If it isn't, that means that your
system doesn't provide enough support for wide characters.  (We have to
rely on the system C library for some things.)


> Even then it doesn't work well; some "using ::*w*" lines has
> to be removed from some headerfiles - and then it seems to work.

That's... odd.

You might try using one of the recent compiler snapshots for 3.1.
Many things have changed since 3.0.


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


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