Article View: gnu.gcc.help
Article #49891Re: HELP
From: Fergus Henderson
Date: Sun, 19 Dec 1993 17:35
Date: Sun, 19 Dec 1993 17:35
23 lines
1811 bytes
1811 bytes
martin@hagi.noguchi.riec.tohoku.ac.jp (martin) writes:
>Here is a question about the installation of GCC. I'm currently using
>gcc V#2.5.6 on a Sun Sparc, Sun-OS 4.1.1. However, some ANSI functions
>are not available, although I use the -ansi switch. (One example is
>'atexit'. By reasons I don't understand the prototype for atexit lies
>within an '#ifdef _cplusplus'(!) construct. Even worse, the linker re-
>ports an 'Undefined symbol' error for '_atexit'!?!)
>Can anybody give me any hint why this happenes? (I suppose something
>with the installation of gcc is wrong. Unfortunatley it was not me who
>installed gcc on our machine.)
gcc doesn't come with a standard C library. It just uses whatever
library existed on your system already. In your case, the library
was a non-ANSI library.
So you can either fork out for Sun's Ansi C library, or attempt
to port glibc.
--
Fergus Henderson | "People who brook no compromise in programming
| languages should program in lambda calculus or
fjh@munta.cs.mu.OZ.AU | machine language, depending." --Andrew Koenig.
Technical Details
Message-ID:
<9335404.2087@mulga.cs.mu.OZ.AU>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!sgiblab!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjhReferences:
<MARTIN.93Dec15204032@hagi.noguchi.riec.tohoku.ac.jp>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,93d324b4fdfc47e7 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-12-19 09:40:54 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!sgiblab!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson) Subject: Re: HELP Message-ID: <9335404.2087@mulga.cs.mu.OZ.AU> Sender: news@cs.mu.OZ.AU Organization: Computer Science, University of Melbourne, Australia References: <MARTIN.93Dec15204032@hagi.noguchi.riec.tohoku.ac.jp> Distribution: gnu Date: Sun, 19 Dec 1993 17:35:21 GMT Lines: 23