的Android NDK C ++的wstring的支持 [英] Android NDK C++ 'wstring' support
问题描述
我有源$ C $ C / lib下用C ++编写 - 现在我想编译和使用的Android NDK项目相同(NDK 6)。我能够编译大多数C ++的文件,除了标准:: wstring的基础功能。
I have source code/lib written in C++ - now i would like to compile and use the same in Android NDK project (NDK 6). I am able to compile most of the C++ files except "std::wstring" based functionality.
在Application.mk当我指定 APP_STL:= stlport_static
然后再编译的std :: wstring的
基于code,但是当我指定 APP_STL:= gnustl_static
失败编译。我不知道如何解决的std :: wstring的
有关问题 APP_STL:= gnustl_static
In Application.mk when i specify APP_STL: = stlport_static
then it compiles std::wstring
based code but when i specify APP_STL: = gnustl_static
it fails to compile. I do not know how to resolve std::wstring
related issue with APP_STL: = gnustl_static
任何指针或在这方面的帮助将是很大的AP preciated。
Any pointer or help on this would be greatly appreciated.
推荐答案
一个非常类似的问题已经被问:<一href="http://stackoverflow.com/questions/4997855/android-ndk-gnustl-static-exe-not-working">android-ndk gnustl_static exe文件不工作认为看这个问题和测试,看看是否有这些问题的答案的工作。
A very similar question has already been asked: android-ndk gnustl_static exe not working consider looking at that question and testing to see if any of those answers work.
这篇关于的Android NDK C ++的wstring的支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!