android jni 提示 undefined reference to 'wctomb'
cpp文件:
#include <jni.h>
#include <stdlib.h>
#include <string>
using namespace std;
void test(std::wstring& source) {
string str("asd");
wchar_t t;
for (std::wstring::const_iterator i = source.begin(); i != source.end();
i++) {
int length = wctomb(&(*str.begin()), *i);
if (length < 1)
break;
}
}
application.mk
编译提示: error: undefined reference to 'wctomb'
ndk版本是r9b (64-bit)
窗边奈奈美
11 years ago