home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / libg++-2.5.3-src.lha / src / amiga / libg++-2.5.3 / libg++-2.5.3-amiga / libg++ / README < prev    next >
Text File  |  1993-12-20  |  10KB  |  245 lines

  1. This is version 2.5 of libg++, the GNU C++ class library.
  2. Release date October 1993 by Cygnus Support
  3.  
  4. * Please skim through this once BEFORE attempting to make and install libg++.
  5.  
  6. * Contents
  7.  
  8.     * g++ source files (with their include files) are in the ./src directory
  9.     * Some simple tests and demo programs are in ./tests
  10.     * documentation is in ./libg++.texinfo.
  11.     * A perfect hash function generator is in ./gperf.
  12.     * Some miscellaneous files of possible interest are in ./etc
  13.       (These files are not officially a part of the libg++ distribution,
  14.       and are subject to arbitrary changes, deletions, etc. from release
  15.       to release.)
  16.  
  17. * Copyright restrictions
  18.  
  19. The GNU Library General Public License (which is in the file
  20. ../COPYING.LIB) covers all libraries (specificly libg++.a) and
  21. include files that get installed (by 'make install').
  22.  
  23. Other parts of the libg++ *distribution* that are not part the libg++
  24. *library* per se have the GNU General Public License (which is in the
  25. file ../COPYING).
  26.  
  27. Individual files should bear the appropriate Copyright (let us know
  28. if you think there is a mistake).  But specificly, if your application
  29. only uses files that are installed by the normal build+install
  30. procedure, then it is bound by the restrictions of the GNU Library
  31. General Public License, but not those of the GNU General Public License.
  32.  
  33. * Pre-installation
  34.  
  35.     * This version of libg++ works best with gcc-2.5 or newer.
  36.       It assume that gcc is responsible for fixing standard C include
  37.       files (such as stdio.h) so that they are suitable for C++
  38.       (using the new fixproto script that is part of gcc-2.5).
  39.  
  40.     * If you're using gcc-2.0 or 2.1 you made need to move aside any
  41.       installed g++-include header files installed from previous versions
  42.       of libg++, since they might conflict with the new ones.
  43.       This is not necessary if your version of gcc supports the
  44.       -nostdinc++ flag.
  45.  
  46.       In general, install a version of gcc (which now includes g++)
  47.       with at least as high a version number as this version of libg++.
  48.  
  49.       You can compile libg++ using a gcc that you haven't installed.
  50.       The most convenient way to do that is to make a symlink named
  51.       gcc in the top-level directory (i.e. libg++-2.5) that points to
  52.       the directory containing the new gcc.  (You should end up with
  53.       libg++/../gcc/xgcc being a valid filename for the uninstalled gcc.)
  54.  
  55.     * With only trivial modifications (like changing file extensions,
  56.       etc.) everything (perhaps except for some demos in ./etc)
  57.       should compile and run with any 2.0 C++ compiler. Please tell me
  58.       if this is not so.
  59.  
  60.       Exactly what changes you make depends on what part of libg++ you want.
  61.       If you don't want to use the libg++ version of iostreams,
  62.       edit 'IO_DIR=../libio' to 'IO_DIR=no-stream' in ../libio/config.shared.
  63.       You then need to 'make' with CC and CXX set appropriately.
  64.  
  65. * Installation (see libg++.texinfo more more details)
  66.  
  67.     * For VMS, cd to ./vms, and read AAAREADME.TXT
  68.       [NOTE:  The VMS support is obsolete.  We need a volunteer to fix it.]
  69.  
  70.     * Make sure your sed is *not* GNU sed version 1.12.
  71.       Most other versions (including GNU sed 1.13) should be OK.
  72.  
  73.     * Go to the directory *above* libg++ (i.e.. libg++-2.5).
  74.  
  75.     * Run './configure' to configure the tree and create Makefiles.
  76.  
  77.     Typical example:
  78.     ./configure [SYSTEM] --prefix=/usr/gnu
  79.  
  80.     The prefix says that installation should be into
  81.     /usr/gnu/lib, /usr/gnu/bin, etc as appropriate.
  82.  
  83.     The SYSTEM indicates what machine configuration you're
  84.     running on.  If you don't specify it, the system can usually
  85.     guess a default.
  86.  
  87.     IMPORTANT:  The configure options (including SYSTEM and
  88.     --prefix) must match those used to configure gcc, otherwise
  89.     g++ may fail to find libg++.
  90.  
  91.     See etc/cfg-paper.texi for more details.  (This paper is
  92.     in texinfo format;  see the section below on Installing
  93.     the Documentation on how to make it more readable.)
  94.  
  95.     * Type `make all'. (Builds libg++.a and some other things.)
  96.  
  97.     * Optionally, type `make check' to make and run some tests/demos of libg++.
  98.  
  99.     * Before installing, if you have an old version that was installed
  100.     into the same directory(s), you should probably remove it.
  101.     (There is currently no clean mechanism to do that.
  102.     You should at least remove $(prefix)/lib/g++-include/*.h,
  103.     where $(prefix) is by default /usr/local.)
  104.  
  105.     * Type `make install'  to install 
  106.  
  107.         libg++.a          (from .)
  108.         include files     (from src and ../libio)
  109.         prototype files   (from src/gen)
  110.         etags             (from etc)
  111.         g++dep            (from etc)
  112.         some other stuff
  113.  
  114.         You may also want to install etc/c++-mode.el in your
  115.         emacs/lisp directory, probably in byte-compiled form.
  116.  
  117.     * Install the documentation
  118.  
  119.     If you are a systems administrator installing libg++ for others,
  120.     please make the documentation available to users!
  121.  
  122.     The libg++.texinfo file may be formatted as a paper document by
  123.  
  124.         * Get a copy of texinfo.tex. 
  125.             This file defines various tex macros used in libg++.texinfo
  126.             One is in the gcc release.
  127.             You can temporarily copy it into the current directory.
  128.         * Run tex on libg++.texinfo
  129.              and do whatever you normally do from there to print it.
  130.  
  131.     It may be made into an emacs info file:
  132.  
  133.     * use the 'makeinfo' program (from the texinfo distribution).
  134.  
  135.         * Copy these files into your emacs info directory
  136.             (normally somewhere like /usr/gnu/emacs/info).
  137.         * If you have not done so before, edit the emacs/info/dir file
  138.             to add a libg++ node, by inserting a line like
  139.         
  140.             * Libg++: (libg++).    The GNU C++ Library
  141.  
  142.             to the bottom of the file.
  143.  
  144.     * (Optional) Install, from ./etc
  145.         etags (version of etags that understands c++)
  146.         g++dep (a version of mkdep that understands c++)
  147.         c++-mode.el (a c++-mode for GNU emacs)
  148.  
  149. * Notes on compiling and running libg++/tests
  150.  
  151. tCurses is not automatically run through `checktests'.
  152. You must run it manually:
  153.  
  154. tCurses attempts to place one of each curses library primitive (boxes,
  155. strings, numbers...) on your screen, and asks for some input, to test
  156. curses input routines. Since there is no way to describe the output
  157. in a system- and terminal- independent way, you will have to be the 
  158. judge of whether it works acceptably.
  159.  
  160. tCurses (and the curses-based classes generally) may fail on the
  161. Sequent and perhaps other systems with unusual or old curses library
  162. implementations if you do not end input with a <linefeed> instead of
  163. the normal <carriage-return>.
  164.  
  165. It is a very good idea to also cd to the test directory and run tests
  166. manually, to see what they do. 
  167.  
  168. Compiling and running the tests consumes a fair amount of time and
  169. disk space!
  170.  
  171. Some reported diffs may be perfectly reasonable, owing to things like
  172. floating point precision differences: The expected.out file was created
  173. on a Sun4/110.
  174.  
  175.     Some tRational and tFix results depend on floating point precision
  176.     and may generate slightly different output on different machines.
  177.  
  178.     tRandom seeds some random-numbers in a way that also relies on
  179.     floating-point representations -- Your output should be numerically
  180.     similar, but probably not identical.
  181.  
  182. * Changes since previous versions(s).
  183.  
  184.     See the file NEWS.
  185.  
  186. * Known bugs and problems
  187.  
  188.     * The file etc/HINTS is an emacs RMAIL file that contains recent
  189.         bug-lib-g++ list mail and related messages that may be useful.
  190.  
  191.     * If "make install" fails with the error message:
  192.  
  193.     Static constructor test failed - see libg++.README
  194.  
  195.       this indicates an error in installing gcc.
  196.       C++ needs special linker support beyond that needed for C, to make
  197.       sure that static objects get initialized and destroyed properly.
  198.       Some linkers (including the GNU linker as well as linkers for
  199.       the Elf object file format) already provide the needed support.
  200.       In other cases, gcc (or g++) uses the "collect2" linker driver.
  201.       Gcc should by default do the right thing, but if you tell
  202.       gcc to assum the GNU linker (with the --with-gnu-linker option),
  203.       and then fail to correctly install GNU ld, you will lose.
  204.  
  205. * Lots of other information is in the libg++.texinfo file. It really is
  206.   very important to actually read the documentation before using 
  207.   library classes. Examination of the demo files in the test directory
  208.   may also be useful. (Note however, that the demo files are merely
  209.   designed to test examples of each class capability,
  210.   and are not especially good examples of client functions that might
  211.   use these classes.)
  212.  
  213. * There is now a gnu libg++ mailing list (bug-lib-g++@prep.ai.mit.edu) and
  214.     associated usenet gnu news group.
  215.  
  216. * You will be performing a valuable service if you use libg++
  217.    classes and report back any comments, and suggestions, or bugs,
  218.    preferably to the bug-lib-g++ list. Your feedback is extremely 
  219.    helpful in efforts to make libg++ as useful and reliable as possible.
  220.  
  221. * We continue to solicit
  222.  
  223.   * bug reports.
  224.   * suggestions.
  225.   * comments.
  226.   * questions about installing and using libg++
  227.   * other contributions to be incorporated into libg++.
  228.   * sample programs using libg++.
  229.  
  230.   Often, the best place to send such things is bug-lib-g++@prep.ai.mit.edu,
  231.   although direct mail is also welcome.
  232.  
  233. * Good luck!
  234.  
  235. Doug Lea designed and implemented most of the classes,
  236. and was the original maintainer and "owner" of libg++.
  237. He has handed over "ownership" to Cygnus Support.
  238.  
  239. Doug Lea, Computer Science Dept., SUNY Oswego, Oswego, NY, 13126 (315)341-2367
  240. email: dl@g.oswego.edu            or dl@cat.syr.edu
  241. UUCP :...cornell!devvax!oswego!dl or ...rutgers!sunybcs!oswego!dl
  242.  
  243. Per Bothner, Cygnus Support, bothner@cygnus.com
  244. Cygnus Support, 1937 Landings Drive, Mountain View, CA 94043
  245.