I faced the same problem as you. You can edit icu \ include \ utf8.h and replace the following lines
#ifdef U_UTF8_IMPL
U_EXPORT const uint8_t
#elif defined (U_STATIC_IMPLEMENTATION) || defined (U_COMMON_IMPLEMENTATION)
U_CFUNC const uint8_t
#else
U_CFUNC U_IMPORT const uint8_t / * U_IMPORT2? * / / * U_IMPORT * /
#endif
utf8_countTrailBytes [256];
from
const uint8_t countTrailBytes [256];
That should do the trick.
Benoit
source share