home *** CD-ROM | disk | FTP | other *** search
/ Peanuts NeXT Software Archives / Peanuts-1.iso / CDROM / READMEs / Peanuts-1 / Patches / NeXTmods.README < prev    next >
Encoding:
Text File  |  1996-11-09  |  2.1 KB  |  73 lines

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