I'm trying to build code which uses boost filesystem with NDK (for android).
Everything is okay except the filesystem:
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*)'
The 911 line of code:
static std::locale posix_lazy_initialization(path::imbue(std::locale("")));
Any ideas how to fix this?
When I changed STL version from: gnustl_static
to gnustl_shared
problem disappeared. What could it be?