🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #606

Re: Help compile libg++2.2 (almost have it)

#606
From: Richard Tom
Date: Mon, 23 Nov 1992 21:45
39 lines
1962 bytes
John,

	The documentation for libg++ states that you must have the same
version or greater of g++ to build libg++.  I was using g++ 2.2.2 and building
libg++ 2.2 and still had the problem you had:

>`if [ -f ${rootprefix}../../gcc/gcc ] ;  then echo ${rootprefix}../../gcc/gcc -B
>${rootprefix}../../gcc/ ;  else echo gcc ; fi` -g  -I. -I.. -I. -I./../src -I./.
>./g++-include -c `if [ -f ${rootprefix}../../gcc/gcc ] ;  then echo -I${rootpref
>ix}../../gcc/include ;  else echo ; fi` sbufvform.C
>sbufvform.C: In method `int  streambuf::vform (const char *, char *)':
>sbufvform.C:248: warning: implicit declaration of function `__builtin_alignof'
>sbufvform.C:248: parse error before `4'
sbufvform.C:248: parse error before `4'
>sbufvform.C:248: parse error before `['
>sbufvform.C:260: parse error before `4'
>sbufvform.C:260: parse error before `4'
>sbufvform.C:260: parse error before `)'
>.
>. similar errors
>.
>sbufvform.C:427: parse error before `4'
>sbufvform.C:427: parse error before `)'
>*** Error code 1
>Stop.


The quick and dirty hack I did was to add the following line after the last
#include statement in the files sbufvform.C and sbufvscan.C:

#define __builtin_alignof __alignof__

I'd say it's a dirty hack, but I did get libg++ 2.2 to build under
Ultrix 4.3 on a DECstation 3100 with g++ (gcc) 2.2.2.

	Hope I've helped,

	Rich
	rtom@cen.com
Technical Details
Message-ID: <1992Nov23.214527.23597@nsisrv.gsfc.nasa.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!ames!nsisrv!fox!rt
References: <1992Nov23.172435.8111@brtph560.bnr.ca> <1992Nov23.180553.9257@sarah.albany.edu>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!ames!nsisrv!fox!rt
From: rtrom@cen.com (Richard Tom)
Subject: Re: Help compile libg++2.2 (almost have it)
Message-ID: <1992Nov23.214527.23597@nsisrv.gsfc.nasa.gov>
Followup-To: gnu.g++.help
Keywords: libg++,iostream install,dec5000
Sender: rt@fox (Richard Tom)
Nntp-Posting-Host: fox.gsfc.nasa.gov
Organization: Century Computing, Inc.
References: <1992Nov23.172435.8111@brtph560.bnr.ca> <1992Nov23.180553.9257@sarah.albany.edu>
Date: Mon, 23 Nov 1992 21:45:27 GMT
Lines: 39