home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / graphics / gnuplot / 576 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.4 KB

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