home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #23 / NN_1992_23.iso / spool / gnu / gcc / help / 2316 < prev    next >
Encoding:
Internet Message Format  |  1992-10-12  |  2.1 KB

  1. Path: sparky!uunet!stanford.edu!agate!ames!think.com!sdd.hp.com!wupost!waikato.ac.nz!aukuni.ac.nz!edwin
  2. Newsgroups: gnu.gcc.help
  3. Subject: HELP!  gcc-2.2.2 doesn't like ANSI-C?
  4. Message-ID: <1992Oct12.185631.18881@ccu1.aukuni.ac.nz>
  5. From: edwin@ccu1.aukuni.ac.nz (Edwin Ng)
  6. Date: Mon, 12 Oct 1992 18:56:31 GMT
  7. Organization: University of Auckland, New Zealand.
  8. Keywords: compiler error, built-in, ansi-c
  9. Lines: 43
  10.  
  11. I've just installed gcc-2.2.2 on my sparcstation running SunOS4.1.1.
  12. I went through the installation twice and both times the stage1
  13. and stage2 object codes were different but the resulting gcc
  14. binary file was the same size.  The stage2 object files
  15. were about twice the size of those in stage1. I didn't have 
  16. anymore diskspace to do a stage3 compile.
  17.  
  18. The resulting gcc file seemed to compile fine except that it
  19. gives me the following error when compiling ansi-c code:
  20.  
  21.     gcc -O -c lvq_pak.c
  22.     In file included from lvq_pak.c:26:
  23.     /usr/include/stdlib.h:18: conflicting types for `abort'
  24.     <built-in>:0: previous declaration of `abort'
  25.     /usr/include/stdlib.h:26: conflicting types for `exit'
  26.     <built-in>:0: previous declaration of `exit'
  27.     *** Error code 1
  28.     make: Fatal error: Command failed for target `lvq_pak.o'
  29.  
  30. NOTE: line 26 is #include <stdlib.c>
  31.  
  32. What is <built-in>??
  33.  
  34. I had to use -traditional option to get pass this error but then
  35. the compiler didn't like the rest of the ansi-c declarations
  36. anymore?  
  37.  
  38. MTW this package lvq_pak-2.1 has been tested to compile
  39. with gcc-2.2.2 under SunOS.  Also I get the same error
  40. when compiling other programs as well.
  41.  
  42. Any help or advice would be greatly appreciated.  Thanks.
  43.  
  44. -----------------------------------------------------
  45. * Edwin Ng                                          *
  46. * Department of Electrical & Electronic Engineering *
  47. * University of Auckland                            *
  48. * Private Bag, Auckland                             *
  49. * NEW ZEALAND                                       *
  50. *                                                   *
  51. * Fax: 64 9 366 0702                                *
  52. * E-mail: edwin@ccu1.aukuni.ac.nz                   *
  53. -----------------------------------------------------
  54.