Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libbinder.so通信方式的分支编译失败 #5

Open
vniu opened this issue May 12, 2020 · 4 comments
Open

libbinder.so通信方式的分支编译失败 #5

vniu opened this issue May 12, 2020 · 4 comments

Comments

@vniu
Copy link

vniu commented May 12, 2020

在../../tools/android-sdk-mac_86/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/bits/fortify/string.h

#if ANDROID_API >= ANDROID_API_J_MR1
return __builtin___strcat_chk(dst, src, __bos(dst));

undefined reference to '__strcat_chk'

@HanselLi
Copy link

+1 ,请求楼主有解决方案吗

@lcodecorex
Copy link
Owner

hi 问题解决了吗?正常来说string.h链接到的是sysroot/usr/include/string.h这个头文件,你们链接到了sysroot/usr/include/bits/fortify/string.h这个位置。可以换一个ndk版本试一下,比如我的ndk版本是r16b。

@lixiangthinker
Copy link

@xiaoyaomeng
Copy link

NDK降级即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants