Hi, I cannot make boost :: regex and ICU work together. I installed icu4c 4_8_1_1 in /usr/local, then boost_1_49_0 libraries, in /usr/local/boost. I used bjam with "-sHAVE_ICU=1". It built successfully with a message "-has_icu builds: yes". So it means boost libraries found icu, and can use it. But it wouldn't. If I add header #include"boost/regex/icu.hpp" to file main.cpp ( In Xcode ) and compile, I receive 451 errors beginning with:
/usr/local/boost_1_49_0/boost/regex/icu.hpp:22:28: error: unicode/utypes.h: No such file or directory
/usr/local/boost_1_49_0/boost/regex/icu.hpp:23:27: error: unicode/uchar.h:
No such file or directory
/usr/local/boost_1_49_0/boost/regex/icu.hpp:24:26: error: unicode/coll.h:
No such file or directory
In file included from
/Users/spaset/Documents/Myprograms/MarcoPolo77OLD/main.cpp:10:
/usr/local/boost_1_49_0/boost/regex/icu.hpp:44: error: 'UChar32' does not
name a type
/usr/local/boost_1_49_0/boost/regex/icu.hpp:46: error: 'char_type' was not
declared in this scope
/usr/local/boost_1_49_0/boost/regex/icu.hpp:46: error: template argument 1
is invalid
If I open file /usr/local/boost_1_49_0/boost/regex/icu.hpp I got the
similar messages:
unicode/utypes.h: No such file or directory
unicode/uchar.h: No such file or directory
unicode/coll.h: No such file or directory
So /usr/local/boost_1_49_0/boost/regex/icu.hpp does not see unicode headers in /usr/local/include/unicode, even though bjam says "- has_icu builds: yes". Can someone tell me what is wrong? Thanks a lot for help!
My details: Mac OSX 10.6.8 IDE - Xcode 3.2
egersheldster.