A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© aofex 中级黑马   /  2015-7-2 11:18  /  1911 人查看  /  0 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

本帖最后由 aofex 于 2015-7-2 15:23 编辑

admindeMac-Pro:8.5练习 admin$ cc 2.m -framework Foundation
2.m:28:23: error: cannot find interface declaration for 'NSObject', superclass
      of 'BodyData'
@interface BodyData : NSObject
~~~~~~~~~~~~~~~~~~~   ^
2.m:28:12: warning: class 'BodyData' defined without specifying a base class
      [-Wobjc-root-class]
@interface BodyData : NSObject
           ^
2.m:28:20: note: add a super class to fix this problem
@interface BodyData : NSObject
                   ^
2.m:95:21: error: cannot find interface declaration for 'NSObject', superclass
      of 'Person'
@interface Person : NSObject
~~~~~~~~~~~~~~~~~   ^
2.m:95:12: warning: class 'Person' defined without specifying a base class
      [-Wobjc-root-class]
@interface Person : NSObject
           ^
2.m:95:18: note: add a super class to fix this problem
@interface Person : NSObject
                 ^
2.m:134:25: warning: class method '+new' not found
      (return type defaults to 'id') [-Wobjc-method-access]
    Person *p = [Person new];
                        ^~~
2.m:139:29: warning: class method '+new' not found
      (return type defaults to 'id') [-Wobjc-method-access]
    BodyData *b = [BodyData new];
代码已经包含框架了,高手们  帮我看看啊  感谢了!!!!

0 个回复

您需要登录后才可以回帖 登录 | 加入黑马