home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / next / programm / 7954 < prev    next >
Encoding:
Text File  |  1992-12-31  |  3.2 KB  |  71 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!psinntp!juliet!news
  3. From: billb@nasty (Bill Burcham)
  4. Subject: Re: Problems using gcc 2.3.3
  5. Message-ID: <1992Dec31.154024.18427@fnbc.com>
  6. Sender: news@fnbc.com
  7. Organization: First National Bank Of Chicago, Chicago IL, USA
  8. References: <PFKEB.92Dec30221114@kaon.SLAC.Stanford.EDU>
  9. Date: Thu, 31 Dec 92 15:40:24 GMT
  10. Lines: 59
  11.  
  12. In article <PFKEB.92Dec30221114@kaon.SLAC.Stanford.EDU>  
  13. pfkeb@kaon.SLAC.Stanford.EDU (Paul F. Kunz) writes:
  14. > So here we are...
  15. > - gcc 2.3.3 doesn't support NeXT's extensions to Objective-C which
  16. > were introduced with NeXTSTEP3.0   So you can't use gcc for any
  17. > compilation requiring the appkit; cuz it will hit things like 
  18. > ``@class'' almost immediately.
  19.  
  20. There are more reasons why you can't use gcc 2.3.3 to build Appkit  
  21. programs.  One is that Appkit classes are built on top of NeXT's  
  22. Objective-C runtime library which is _different_ from GNU's Objective-C  
  23. runtime library.  Another problem (as you mention above) is that gcc does  
  24. not recognize @class, @protocol, nor does it support NeXT's Distributed  
  25. Objects stuff.
  26.  
  27. > - NeXT's cc++ doesn't support GNU's extension to the C++ language which
  28. > were introduced with gcc 2.x.   So you can't use cc++ for any
  29. > compilation requiring libg++; cuz it will hit things like
  30. > ``#include-next stdlib.h'' almost immediately.
  31.  
  32. The main issue I have found here is that NeXT's Objective-C++ compiler  
  33. does not support the C++ 2.1 standard (it supports the C++ 2.0 standard I  
  34. believe).  You should be able to compile _old_ (version 1.3.7) versions of  
  35. libg++ using NeXT's Objective-C++ compiler.
  36.  
  37. This is how I understand things:
  38.  
  39.                                   TOOL
  40.                   Compiler               GNU Library Version
  41.                _________________________________________________
  42.           2.0 | NeXT Objective-C++ | (1.37) or (1.39 w/ hacks?) |
  43. C++ std.      |--------------------|----------------------------|
  44.           2.1 | GNU 2.3.2 (2.3.3?) | 2.2                        |
  45.               ---------------------------------------------------
  46.  
  47. > So if I understand things right (please correct me if I'm wrong), we
  48. > are really in bad shape.   We can't use both the latest release of
  49. > gcc/libg++ and NeXTSTEP 3.0 in the same application.
  50. > Anybody else find this distrubing?
  51.  
  52. Since the GNU project seems uninterested in compat. w/ NeXT's  
  53. Objective-C++ compiler and runtime (with Distrib. Obj., etc.), I think  
  54. that the best we can hope for is that NeXT will bring Objective-C++ up to  
  55. the C++ 2.1 standard so that we can compile the latest libg++ on NeXT.
  56.  
  57. PS Are nested function definitions part of the C++ 2.1 standard?  I  
  58. believe that GNU's compiler allows these.  Does the GNU compiler have  
  59. features outside the C++ 2.1 standard?  Does libg++ use any of these  
  60. features?
  61.  
  62. > Paul F. Kunz    pfkeb@slac.stanford.edu (NeXT mail ok)
  63.  
  64. +--------------------------------+----------------------------------+
  65. |          Bill Burcham          | "Make no small plans; they have  |
  66. | First National Bank of Chicago | no magic to stir men's souls"    |
  67. |    billb@fnbc.com  (NeXTmail)  |      Daniel J. Burnham           |
  68. +--------------------------------+----------------------------------+
  69.