c++ - Filesystem and locale -
i'm trying build code uses boost filesystem ndk (for android).
everything okay except filesystem:
libs/filesystem/src/path.cpp:911: error: undefined reference 'std::locale::locale(char const*)' libs/filesystem/src/path.cpp:911: error: undefined reference 'std::locale::locale(char const*)' libs/filesystem/src/path.cpp:911: error: undefined reference 'std::locale::locale(char const*)' libs/filesystem/src/path.cpp:911: error: undefined reference 'std::locale::locale(char const*)' the 911 line of code:
static std::locale posix_lazy_initialization(path::imbue(std::locale(""))); any ideas how fix this?
when changed stl version from: gnustl_static gnustl_shared problem disappeared. be?
on line 906/907, have macro
#if defined(boost_posix_api) && \ !(defined(macintosh) || defined(__apple__) || defined(__apple_cc__)) which changed include exception android
#if defined(boost_posix_api) && \ !(defined(macintosh) || defined(__apple__) || defined(__apple_cc__) || defined(android)) so far good, though code not rely on locales...
i have cross posted question android developers google group, maybe have definitive answer on why dynamic linking works instead of static. post news get...
Comments
Post a Comment