小编Vij*_* PO的帖子

如何在 Android.bp 文件中包含预建库?

我使用的是 Android-O,我看到大部分 .mk 文件都被 .bp 文件替换了。现在我已经修改了使用 .bp 文件构建的硬件/接口下的源代码之一。

现在我有一个由源代码使用的预构建共享库。

但我无法弄清楚如何将预建库包含到 Android.bp 文件中。

任何帮助/评论将不胜感激。

c++ java-native-interface android shared-libraries android-build

4
推荐指数
1
解决办法
1万
查看次数

What is stack smashing and how do I fix it?

The purpose of this program is to determine if a number between 1 and 1000 is prime by testing its divisibility with the first 11 prime integers. The program functions properly with most inputs. However, when I input an integer such as 468, stack smashing is detected. What is stack smashing and how do I resolve the issue?

I've tried researching stack smashing but I can't find specific examples that relate to my program. I am unaware of alternative methods …

c stack-smash

3
推荐指数
1
解决办法
145
查看次数