Boost logo

Boost :

Subject: Re: [boost] [offtopic] cygwin and wchar
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2010-08-04 03:53:58


Eric Niebler wrote:

>
> On 8/3/2010 9:06 PM, Robert Ramey wrote:
>> Eric Niebler wrote:
>>> I see that the cygwin toolset now expects wchar support, and I've
>>> heard that cygwin does indeed support wchar now, but I don't know
>>> what I need to do to get it. Simply running the cygwin installer and
>>> letting it update everything doesn't seem to do the trick. Help?
>>
>> Hmmm - that's all I did and it worked fine. I did notice one
>> thing though - it seemed to leave some older version of gcc
>> and libraries on there. Double check that the older ones
>> aren't being invoked with gcc -v
>
> Ah, I had to install the gcc4 package. It installs side-by-side with the
> earlier gcc package, which is gcc3.
>
> I wonder if it's a good idea for the cygwin toolset to just assume that
> wchar support is present, when really it's only present if the user has
> selected gcc4.

What is 'cygwin' toolset? In any way, the ideal solution, of course, is to
use compile or run checks to detect if enough of wchar_t support is available.
See regex library for examples of how is it done.

- Volodya


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk