我在使用 bool 作为通过 ndk-build 进行编译的类型时遇到问题:
bool test = true;
错误:
48: error: 'bool' undeclared (first use in this function)
有什么想法吗?
最佳答案
bool
不是 C 中的内置类型。您需要 #include <stdbool.h>
得到它。
关于android - 在android ndk中使用bool变量时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4628233/