Article View: gnu.gcc.help
Article #481HELP! gcc-2.2.2 doesn't like ANSI-C?
From: Edwin Ng
Date: Mon, 12 Oct 1992 18:56
Date: Mon, 12 Oct 1992 18:56
43 lines
2228 bytes
2228 bytes
I've just installed gcc-2.2.2 on my sparcstation running SunOS4.1.1. I went through the installation twice and both times the stage1 and stage2 object codes were different but the resulting gcc binary file was the same size. The stage2 object files were about twice the size of those in stage1. I didn't have anymore diskspace to do a stage3 compile. The resulting gcc file seemed to compile fine except that it gives me the following error when compiling ansi-c code: gcc -O -c lvq_pak.c In file included from lvq_pak.c:26: /usr/include/stdlib.h:18: conflicting types for `abort' <built-in>:0: previous declaration of `abort' /usr/include/stdlib.h:26: conflicting types for `exit' <built-in>:0: previous declaration of `exit' *** Error code 1 make: Fatal error: Command failed for target `lvq_pak.o' NOTE: line 26 is #include <stdlib.c> What is <built-in>?? I had to use -traditional option to get pass this error but then the compiler didn't like the rest of the ansi-c declarations anymore? MTW this package lvq_pak-2.1 has been tested to compile with gcc-2.2.2 under SunOS. Also I get the same error when compiling other programs as well. Any help or advice would be greatly appreciated. Thanks. ----------------------------------------------------- * Edwin Ng * * Department of Electrical & Electronic Engineering * * University of Auckland * * Private Bag, Auckland * * NEW ZEALAND * * * * Fax: 64 9 366 0702 * * E-mail: edwin@ccu1.aukuni.ac.nz * -----------------------------------------------------
Technical Details
Message-ID:
<1992Oct12.185631.18881@ccu1.aukuni.ac.nz>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!ames!think.com!sdd.hp.com!wupost!waikato.ac.nz!aukuni.ac.nz!edwinShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!ames!think.com!sdd.hp.com!wupost!waikato.ac.nz!aukuni.ac.nz!edwin Newsgroups: gnu.gcc.help Subject: HELP! gcc-2.2.2 doesn't like ANSI-C? Message-ID: <1992Oct12.185631.18881@ccu1.aukuni.ac.nz> From: edwin@ccu1.aukuni.ac.nz (Edwin Ng) Date: Mon, 12 Oct 1992 18:56:31 GMT Organization: University of Auckland, New Zealand. Keywords: compiler error, built-in, ansi-c Lines: 43