🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

3 total messages Started by "Francis Sullivan" Tue, 26 Sep 1989 23:17
g++ 1.34.2 seg violation
#442
Author: "Francis Sullivan"
Date: Tue, 26 Sep 1989 23:17
23 lines
922 bytes
%
% cat seg.cc
seg.cc: No such file or directory
% cd cppbug
%
% cat seg.cc
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
Re: g++ 1.34.2 seg violation
#443
Author: Doug Schmidt
Date: Wed, 27 Sep 1989 02:31
29 lines
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.
g++ 1.34.2 seg violation
#444
Author: Michael Tiemann
Date: Wed, 27 Sep 1989 05:33
3 lines
573 bytes
Version 1.34.2 is very old.  Try 1.36.0, which is now in test release.

Michael
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads