home *** CD-ROM | disk | FTP | other *** search
- C++ Library for GNU C/C++ 2.4.5 and UnixLib
- -------------------------------------------
-
- This is a (very) slightly altered version libg++2.3.1 which seems
- to mainly be wrote & altered by Per Bothner (bothner@cygnus.com).
-
- All I've done is made sure that all the included ANSI C libraries
- (stdio.h string.h, etc...) were included as 'extern "C"'. Without
- this th eintrenal names used by C++ would be different form those
- created by a C complier & they so they wouldnt link together.
-
- This was a problem woth the older GNU C++ complier, however that
- had a '-+' option which forced the C++ compler to ALWAYS use C
- names, so it linked. The new C++ comlier (a fr as I know) doesn't
- have such an option, and so the source needed to be changed so that
- the compler knows when to *selectively* use C naming.
-
- At least I think this is what is going on.
-
- This archive (one) contains the essentials, ie. the object code
- and the headers. The second archive contains the C++ source
- code for the library.
-
- To use just put the headers somewhere the complier will find them
- (a !Gcc.GCC.h directory for example) and the object code somewhere as
- well (!GCC.GCC?) and you should then be able to use C++ iostreams
- etc...
-
- If you have any problems first try including the following in
- clib.sys.h.stats before the last #endif:
-
- /*-----------------------------------------------------*/
- #ifndef S_ISDIR
- #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
- #endif
- #ifndef S_ISBLK
- #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK)
- #endif
- #ifndef S_ISCHR
- #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
- #endif
- #ifndef S_ISFIFO
- #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFFIFO)
- #endif
- #ifndef S_ISREG
- #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
- #endif
- #if !defined(S_ISLNK) && defined(S_IFLNK)
- #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
- #endif
- /*-----------------------------------------------------*/
-
- And it just may work...
-
- NOTE : You need to be using UnixLib.
-
- Hope it all works out OK, if not mail me and give me some
- grief.
-
- Enjoy,
-
- Adrian Bool
-
- u9119221@sys.uea.ac.uk
-