Boost logo

Boost Users :

Subject: Re: [Boost-users] help me with xpressive
From: Eric Niebler (eric_at_[hidden])
Date: 2009-12-25 15:12:12


On 12/26/2009 1:40 AM, haccel wrote:
>
> Cant compile in mingw ( QtCreator , Windows ) code with using boost
> xpressive.
> It talks " undeclared symbols - wsregex " .
> But with sregex ang cregex it works fine.
> Visual Studio compile wsregex fine , too.
> But GCC not.
>
> Found nex code in \boost\xpressive\xpressive_fwd.hpp -
>
> #if defined(BOOST_NO_CWCHAR) | defined(BOOST_NO_CWCTYPE) |
> defined(BOOST_NO_STD_WSTRING)
> # ifndef BOOST_XPRESSIVE_NO_WREGEX
> # define BOOST_XPRESSIVE_NO_WREGEX
> # endif
> #endif
>
> and later :
>
> #ifndef BOOST_XPRESSIVE_NO_WREGEX
> typedef basic_regex<std::wstring::const_iterator> wsregex;
> typedef basic_regex<wchar_t const *> wcregex;
> #endif
>
> What can i do?

Mingw doesn't have wide character support, last time I checked. Your
options are not good, I'm afraid. Your can either:

a) Not use mingw
b) Not use wide characters
c) Not use xpressive

Take your pick. :-(

All: does anybody know if mingw has added wide character support? Or if
they ever plan to?

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net