
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_regexstd::wstring::const_iterator wsregex; typedef basic_regex
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