'__weak' only applies to Objective-C object or block pointer types; type here is 'int'

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Crazy_SunShine/article/details/84975253

ERROR:

'__weak' only applies to Objective-C object or block pointer types; type here is 'int'
A parameter list without types is only allowed in a function definition
Expected ';' at end of declaration
Insert ';'
Type specifier missing, defaults to 'int'

解决办法如下:

Xcode-> Build Settings-> C Language Dialect修改配置,C99改为GNU99C99不包含typeof

猜你喜欢

转载自blog.csdn.net/Crazy_SunShine/article/details/84975253