home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / next / programm / 8031 < prev    next >
Encoding:
Text File  |  1993-01-07  |  2.0 KB  |  73 lines

  1. Path: sparky!uunet!cs.utexas.edu!rutgers!flop.ENGR.ORST.EDU!flop.ENGR.ORST.EDU!usenet
  2. From: schreier@next242.ECE.ORST.EDU (Richard Schreier)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: C++
  5. Keywords: C++
  6. Message-ID: <1iin29INNbap@flop.ENGR.ORST.EDU>
  7. Date: 8 Jan 93 01:57:29 GMT
  8. Organization: College of Engineering, Oregon State University
  9. Lines: 61
  10. NNTP-Posting-Host: next242.ece.orst.edu
  11.  
  12. Thanks to the friendly folks at NeXT (Allen Denison),
  13. who in turn acknowledges madler@nntp-server.caltech.edu (Mark Adler)
  14. I have managed to get C++ to go. Here is the magic.
  15.  
  16. Create a folder, say /me/tmp.
  17. % mkdir tmp
  18. % cd tmp
  19.  
  20. Get libg++-1.39.0.tar.Z via anonymous ftp from prep.ai.mit.edu
  21. from the directory pub/gnu.
  22. % ftp prep.ai.mit.edu
  23. ..
  24.  
  25. Get NeXTmods-rls3.tar.Z via anonymous ftp from next242.ece.orst.edu
  26. from the directory pub.
  27. % ftp next242.ece.orst.edu
  28. ..
  29.  
  30. Unpack the gnu stuff, and cd to the newly created directory.
  31. % zcat libg++-1.39.0.tar.Z | tar xf -
  32. % cd libg++-1.39.0
  33.  
  34. Unpack the mods file while in the newly created libg++-1.39.0 folder.
  35. % zcat ../NeXTmods-rls3.tar.Z | tar xf -
  36.  
  37. Create /usr/gnu, and /usr/gnu/lib (writable by whoever is doing this).
  38. % mkdir /usr/gnu
  39. % mkdir /usr/gnu/lib
  40.  
  41. Change Makefile line 32 to "PWD=/me/tmp/libg++-1.39.0"
  42.                 ^^^^^^^ may need changing
  43.  
  44. Then
  45. % make src            (takes a while--ignore the warnings)
  46. % make install-lib"        (puts libg++.a in /usr/gnu/lib)
  47. % make install-include-files"    (this puts the include files in 
  48.                   /usr/gnu/lib/g++-include)
  49. % make tests"             (this takes rather a lot of disk space).  
  50.  
  51. There are differences from the expected output, most likely due to
  52. finite precision effects.
  53.  
  54. Make a test program, x.cc, containing:
  55.         #include <stream.h>
  56.         main() {
  57.           cout << " Hello world!\n";
  58.         }
  59. Compile it.
  60. % cc++ -I/usr/gnu/lib/g++-include -O x.cc -L/usr/gnu/lib -lg++
  61. Run it.
  62. % a.out
  63. It should print
  64.  Hello world!
  65.  
  66. And THAT IS ALL!
  67.  
  68. --
  69. Professor Richard Schreier
  70. Dept. of Electrical and Computer Engineering
  71. Oregon State University            Tel (503)-737-2051
  72. Corvallis, OR 97331-3211        Fax (503)-737-1300
  73.