Boost.Regex with icu/unicode support

Davaahuu Jamsran picture Davaahuu Jamsran · Apr 18, 2013 · Viewed 8.4k times · Source

How to build Boost.Regex with icu/ unicode support? My compiler is GCC, and IDE is Eclipse C++. How to configure binary files with Eclipse? I tried to do this "bjam --sHAVE_ICU=1 toolset=gcc". But it did not work. When i check if icu support is enable with "bjam -has_icu", i still get "has icu builds : no".

Answer

NuSkooler picture NuSkooler · Apr 30, 2013

I build Boost against ICU using -sICU_PATH=<icuRoot> and -sICU_LINK="-L<icuLibDir>".

I've seen Boost fail to properly detect ICU as well, and have needed to patch the file has_icu_test.cpp (simply return 0 from it's main() function). This will work if you know everything else is set up properly.