home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!lugb!luxor.latrobe.edu.au!ecsgrt
- Newsgroups: comp.graphics.gnuplot
- Subject: Re: Problem compiling gnuplot3.2
- Message-ID: <1992Dec19.022222.3193@lugb.latrobe.edu.au>
- From: ecsgrt@luxor.latrobe.edu.au (Geoffrey Tobin)
- Date: Sat, 19 Dec 1992 02:22:22 GMT
- Sender: news@lugb.latrobe.edu.au (USENET News System)
- References: <9212152129.AA08815@exitech.com>
- Organization: La Trobe University
- Keywords: sun, cc, non-ansi
- Lines: 21
-
- John McGrath's email address (ext_adm!jmcgrath@uunet.uu.net) is
- totally inaccessible to me, so I post.
-
- In ANSI C, "FLT_MAX" is #define-d in <float.h>. Sun's "cc" compiler,
- headers and libraries are not ANSI, they're an adaptation of BSD
- (Berkeley) unix's C.
-
- Watch out for sscanf (it uses ungetc, and so cannot read a constant
- string), and for sprintf and vsprintf (they do _not_ return the int
- number of characters written, they return a "char *" which is normally
- to be cast to a "void", and ignored ! ).
-
- There are a number of even less savory qualities to Sun's "cc",
- including the -O optimizer, floating point bugs, and I suspect some
- tricky machinations in fprintf's or fscanf's return values when
- dealing with (8-bit ?) character I/O.
-
- gcc 2.2.2 on the Sun has some of the same peculiarities, even though
- gcc is supposed to be ANSI C.
-
- Geoffrey Tobin ecsgrt@luxor.latrobe.edu.au
-