Android-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;
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 C++ 中, wctomb 函数是在 cstdlib.h 头文件中,把你的头文件修改下就可以了
wctomb 函数