home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / next / programm / 7950 < prev    next >
Encoding:
Text File  |  1992-12-30  |  2.5 KB  |  68 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: comp.sys.next.programmer
  4. Subject: Problems using gcc 2.3.3
  5. Date: 31 Dec 1992 00:44:53 GMT
  6. Organization: University of Washington
  7. Lines: 55
  8. Message-ID: <1htfq5INNhm3@shelley.u.washington.edu>
  9. NNTP-Posting-Host: stein.u.washington.edu
  10. Summary: Problems using gcc 2.3.3 on NeXT
  11. Keywords: gcc Objective-C
  12.  
  13. I am having problems using gcc 2.3.3 on the NeXT which is an '040 cube
  14. running NS 3.0. What follows is a snippet of the code followed by the
  15. error. Any help at all would be greatly appreciated.
  16.  
  17.  
  18.                 Reggie
  19.  
  20.  
  21. /* Protocol support */
  22.  
  23. @class Protocol;
  24.  
  25. struct objc_protocol_list {
  26.     struct objc_protocol_list *next;
  27.     int count;
  28.     Protocol *list[1];
  29. };
  30.  
  31. /NextDeveloper/Headers/objc/objc-class.h:77: invalid Objective C keyword `@class'
  32. /NextDeveloper/Headers/objc/objc-class.h:77: parse error before `@class'
  33. /NextDeveloper/Headers/objc/objc-class.h:82: parse error before `Protocol'
  34. /NextDeveloper/Headers/objc/objc-class.h:82: warning: no semicolon at end of struct or union
  35. -----------------------------------------------------------------------------
  36. #ifdef __GNUC__
  37. #ifndef __STRICT_ANSI__
  38. __volatile    /* never returns */
  39. #endif /* not __STRICT_ANSI__ */
  40. #endif /* __GNUC__ */
  41. extern void _NXRaiseError(int code, const void *data1, const void *data2);
  42.  
  43. /NextDeveloper/Headers/objc/error.h:81: warning: `extern' is not at beginning of declaration
  44. -------------------------------------------------------------------------------
  45. #import <objc/typedstream.h>
  46. #import <objc/zone.h>
  47. @class Protocol;
  48.  
  49. /NextDeveloper/Headers/objc/Object.h:17: invalid Objective C keyword `@class'
  50. /NextDeveloper/Headers/objc/Object.h:17: parse error before `@class'
  51. -----------------------------------------------------------------------------
  52. - (BOOL) conformsTo: (Protocol *)aProtocolObject;
  53. + (BOOL) conformsTo: (Protocol *)aProtocolObject;
  54.  
  55. /NextDeveloper/Headers/objc/Object.h:69: parse error before `Protocol'
  56. /NextDeveloper/Headers/objc/Object.h:70: parse error before `Protocol'
  57. --------------------------------------------------------------------------
  58.  
  59. @protocol NXEncoding
  60. // encode an objc (parameter) type
  61. - encodeData:(void *)data ofType:(const char *)type;
  62.  
  63.  
  64. /NextDeveloper/Headers/remote/transport.h:13: invalid Objective C keyword `@protocol'
  65. /NextDeveloper/Headers/remote/transport.h:13: parse error before `@protocol'
  66. /NextDeveloper/Headers/remote/transport.h:18: method definition not in class context
  67.  
  68.