【发布时间】:2013-04-05 20:40:55
【问题描述】:
我正在尝试构建使用带有 NDK 的 boost 文件系统的代码(适用于 android)。
除了文件系统,一切都很好:
libs/filesystem/src/path.cpp:911: error: undefined reference to 'std::locale::locale(char const*)'
libs/filesystem/src/path.cpp:911: error: undefined reference to 'std::locale::locale(char const*)'
libs/filesystem/src/path.cpp:911: error: undefined reference to 'std::locale::locale(char const*)'
libs/filesystem/src/path.cpp:911: error: undefined reference to 'std::locale::locale(char const*)'
911行代码:
static std::locale posix_lazy_initialization(path::imbue(std::locale("")));
任何想法如何解决这个问题?
当我将 STL 版本从:gnustl_static 更改为 gnustl_shared 时,问题消失了。会是什么?
【问题讨论】:
-
我也面临这个问题,但是共享链接对我来说不是一个合适的解决方案!
标签: c++ android-ndk locale