函数声明符错误后的预期函数主体 [英] Expected function body after function declarator error

查看:166
本文介绍了函数声明符错误后的预期函数主体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里下载了类文件和演示程序: http://github.com/matej/MBProgressHUD

I downloaded the class files and demo program here: http://github.com/matej/MBProgressHUD

当我尝试编译程序时,出现了一些错误。第一个出现在这里:

When I try to compile the program, I get several errors. The first one appears here:

CG_EXTERN void CGPDFContextAddDocumentMetadata(CGContextRef context,
  CFDataRef metadata) CG_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_0);

第二行错误是在函数声明符之后的预期函数体。

On the second line the error is "Expected function body after function declarator."

此代码出了什么问题?

What's wrong with this code? How can it be fixed?

推荐答案

在项目构建设置中,将编译器版本更改为系统默认版本。

In the project build settings, change the compiler version to the system default.

如果您可以访问Apple的Xcode Beta开发论坛,则可以在 https://devforums.apple.com/message/287160#287160

If you have access to Apple's Dev Forums for the Xcode betas, you can find more info and an alternative solution at https://devforums.apple.com/message/287160#287160.

这篇关于函数声明符错误后的预期函数主体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆