error: 'malloc' was not declared in this scope
解決方法:
NDK_TOOLCHAIN_VERSION=4.8
APP_CPPFLAGS += -frtti -std=c++11
1.書寫錯誤。
2.沒有引用相應的庫。
解決方法:引入stdlib.h,這個也管用
#include<stdlib.h>
————————————————
版權聲明:本文爲CSDN博主「ShellCollector」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/jacke121/article/details/106717841