error: expected parameter declarator(check_compile_time)

Posted 仲长可倾

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了error: expected parameter declarator(check_compile_time)相关的知识,希望对你有一定的参考价值。

1.类QNNPing.m 第93行到103行,check_compile_time调用,
error: expected parameter declarator
check_compile_time(sizeof(IPHeader) == 20);
....
....
可能解决方法:check_compile_time中的参数全部添加括号,如
check_compile_time(sizeof(IPHeader) == 20);
改为
check_compile_time((sizeof(IPHeader) == 20));

 

2.修改check_compile_time为__Check_Compile_Time可行。

 

以上是关于error: expected parameter declarator(check_compile_time)的主要内容,如果未能解决你的问题,请参考以下文章