我使用的是 Android-O,我看到大部分 .mk 文件都被 .bp 文件替换了。现在我已经修改了使用 .bp 文件构建的硬件/接口下的源代码之一。
现在我有一个由源代码使用的预构建共享库。
但我无法弄清楚如何将预建库包含到 Android.bp 文件中。
任何帮助/评论将不胜感激。
c++ java-native-interface android shared-libraries android-build
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 …