Article View: gnu.g++.bug
Article #443Re: g++ 1.34.2 seg violation
From: Doug Schmidt
Date: Wed, 27 Sep 1989 02:31
Date: Wed, 27 Sep 1989 02:31
29 lines
1597 bytes
1597 bytes
In article <8909262317.AA00506@yeager>, francis%sunquest ("Francis Sullivan") writes:
>extern "C" {
>#include <sys/types.h>
>}
>main() {
>int i = 1;
>}
>% g++ -v
>g++ version 1.34.2
>% cat /etc/motd
>SunOS Release 4.0 (SQDL60) #1: Fri Mar 10 18:55:26 MST 1989
>% g++ seg.cc
>/usr/include/sys/types.h:32: Segmentation violation
>Program c++ got fatal signal 11.
>%
>--
>I don't know if the extern syntax is correct, but it still shouldn't
>get the violation
The solution to this problem is to get hold of a more recent version
of the g++ compiler. Check out labrea.stanford.edu in the ~ftp/pub/gnu
directory, g++.ytar.Z. This program compiles just fine with g++ 1.36.0-.
Doug
--
schmidt@ics.uci.edu (ARPA) | Per me si va nella citta' dolente.
office: (714) 856-4043 | Per me si va nell'eterno dolore.
| Per me si va tra la perduta gente.
| Lasciate ogni speranza o voi ch'entrate.
Technical Details
Message-ID:
<1989Sep27.023133.4740@paris.ics.uci.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!ucla-cs!uci-ics!newsReferences:
<8909262317.AA00506@yeager>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!ucla-cs!uci-ics!news
From: schmidt@glacier.ics.uci.edu (Doug Schmidt)
Newsgroups: gnu.g++.bug
Subject: Re: g++ 1.34.2 seg violation
Message-ID: <1989Sep27.023133.4740@paris.ics.uci.edu>
Date: 27 Sep 89 02:31:33 GMT
References: <8909262317.AA00506@yeager>
Sender: news@paris.ics.uci.edu (Network News)
Reply-To: schmidt@glacier.ics.uci.edu (Doug Schmidt)
Distribution: gnu
Organization: University of California, Irvine - Dept of ICS
Lines: 29
In-reply-to: francis%sunquest.UUCP@ARIZONA.EDU ("Francis Sullivan")