undeclared 未声明 .可以考虑把true写进宏里
#define true 1
#include <stdbool.h>
编译器的问题吧,语法正确的,报未定义的话,不行就将true改成1就是了