Boost logo

Boost Users :

From: Sam Gw (samgw_at_[hidden])
Date: 2005-12-14 22:48:28


Hi there,

I got some problem when try to compile unit testing source code.

When I try to compile test_locale.cpp , I got compile error message like
below:

\libs\regex\test\regress\test_locale.cpp(133) : error C2002: invalid
wide-character constant

I guess the problem relates with my Tradition Chinese System & Unicode.
But I don't know how to solve.
And when I try to define BOOST_NO_WREGEX, it success.

(I could compile and execute example -> credit_card_example.cpp success. )

operation system : WinXP professional Tradition Chinese SP2.
Compiler : Vistual C++ sp6 + stlport 5.0 + platform SDK Feb 2003

Line below is source code:

TEST_REGEX_SEARCH_L("[[:lower:]]+", perl,
"\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xf7",
match_default, make_array(1, 32, -2, -2));

My compile command:
E:\boost_1_33_1\libs\regex>cl /MD /Zm400 /GF /Gy -GX -GR /Oityb1
E:\boost_1_33_1\libs\regex\test\regress\test_locale.cpp -link
/LIBPATH:..\..\stage\lib
/LIBPATH:E:\boost_1_33_1\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release\threading-multi\
/LIBPATH:%STLPORT_PATH%\lib user32.lib


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