home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / gcc / help / 2839 < prev    next >
Encoding:
Text File  |  1992-12-30  |  2.6 KB  |  67 lines

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!stein.u.washington.edu!reggie
  2. From: reggie@stein.u.washington.edu (Reginald Perry)
  3. Newsgroups: gnu.gcc.help
  4. Subject: GCC 2.3.3 on NeXT NeXTStep 3.0 Compile problems
  5. Date: 31 Dec 1992 00:49:11 GMT
  6. Organization: University of Washington
  7. Lines: 54
  8. Message-ID: <1htg27INNhod@shelley.u.washington.edu>
  9. NNTP-Posting-Host: stein.u.washington.edu
  10. Summary: problems with new Objective-C keywords on NeXT
  11. Keywords: gcc Objective-C next
  12.  
  13. I am having a problem compiling some Objective-C code on a NeXT
  14. running NeXTStep 3.0. I hope I am doing something stuid. What follows
  15. is a snippet of the code followed by the error. Any help at all would
  16. be appreciated.
  17.  
  18.                 Reggie
  19.  
  20. /* Protocol support */
  21.  
  22. @class Protocol;
  23.  
  24. struct objc_protocol_list {
  25.     struct objc_protocol_list *next;
  26.     int count;
  27.     Protocol *list[1];
  28. };
  29.  
  30. /NextDeveloper/Headers/objc/objc-class.h:77: invalid Objective C keyword `@class'
  31. /NextDeveloper/Headers/objc/objc-class.h:77: parse error before `@class'
  32. /NextDeveloper/Headers/objc/objc-class.h:82: parse error before `Protocol'
  33. /NextDeveloper/Headers/objc/objc-class.h:82: warning: no semicolon at end of struct or union
  34. -----------------------------------------------------------------------------
  35. #ifdef __GNUC__
  36. #ifndef __STRICT_ANSI__
  37. __volatile    /* never returns */
  38. #endif /* not __STRICT_ANSI__ */
  39. #endif /* __GNUC__ */
  40. extern void _NXRaiseError(int code, const void *data1, const void *data2);
  41.  
  42. /NextDeveloper/Headers/objc/error.h:81: warning: `extern' is not at beginning of declaration
  43. -------------------------------------------------------------------------------
  44. #import <objc/typedstream.h>
  45. #import <objc/zone.h>
  46. @class Protocol;
  47.  
  48. /NextDeveloper/Headers/objc/Object.h:17: invalid Objective C keyword `@class'
  49. /NextDeveloper/Headers/objc/Object.h:17: parse error before `@class'
  50. -----------------------------------------------------------------------------
  51. - (BOOL) conformsTo: (Protocol *)aProtocolObject;
  52. + (BOOL) conformsTo: (Protocol *)aProtocolObject;
  53.  
  54. /NextDeveloper/Headers/objc/Object.h:69: parse error before `Protocol'
  55. /NextDeveloper/Headers/objc/Object.h:70: parse error before `Protocol'
  56. --------------------------------------------------------------------------
  57.  
  58. @protocol NXEncoding
  59. // encode an objc (parameter) type
  60. - encodeData:(void *)data ofType:(const char *)type;
  61.  
  62.  
  63. /NextDeveloper/Headers/remote/transport.h:13: invalid Objective C keyword `@protocol'
  64. /NextDeveloper/Headers/remote/transport.h:13: parse error before `@protocol'
  65. /NextDeveloper/Headers/remote/transport.h:18: method definition not in class context
  66.  
  67.