我在论坛上看到了这个错误和不同的变化,但作为一个非程序员,我不知道如何推进这个.
基本上我有代码,我发现它可以帮助我在分组的uitableview上更改单元格的背景颜色.代码引入了一行:
CGContextAddArcToPoint(c, minx, miny, midx, miny, ROUND_SIZE);
Run Code Online (Sandbox Code Playgroud)
这给出了一个错误,表明它没有声明,所以我在我的.h文件中添加了以下import uikit:
#import <UIKit/UIKit.h>
#define ROUND_SIZE 10
Run Code Online (Sandbox Code Playgroud)
现在它显示我有一个错误:
命令/开发人员/平台/ iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2失败,退出代码为1 iphone
一些讨论谈论图书馆,但因为我没有编程背景,我不明白该怎么做.我也看到有些人显示日志输出,但我不知道它来自哪里,因为我没有得到任何调试窗口,因为我猜它没有那么远.我只需单击"Build and Go"即可在"消息"窗口中看到此错误.
有什么想法吗?
可能重复:
gcc-4.2失败,退出代码为1 iphone
任何人都能说出这个错误意味着什么吗?
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
Run Code Online (Sandbox Code Playgroud)