From: Newsgroups: comp.os.msdos.djgpp Subject: Re: GCC 2.8.0 installation nearly works Date: 16 Apr 1998 12:37:17 GMT Organization: Triode Internet Lines: 91 Message-ID: <6h4u1t$oae$1@hyperion.triode.net.au> References: <01bd6245$95c011a0$0ca9eac2 AT Image> NNTP-Posting-Host: xenon.triode.net.au Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In comp.os.msdos.djgpp merser wrote: > This is a multi-part message in MIME format. Yeah, my mime handling is still catching up, got it working on mail but I still find MIME news postings to be pain, > c:/djgpp/lang/cxx/std/new.h:26: warning: declaration of `operator = > delete(void *)' throws different exceptions > :26: warning: previous declaration here Well I know what causes this... you are trying to use your own custom delete() function that worked OK in earlier versions of gcc but won't work in 2.8.0 because it has a new idea that delete() should be declared to throw exceptions. Your delete() probably doesn't throw any exceptions so gxx sees that at a bad declaration. I fixed it by using -fno-exceptions and -fno-rtti but I'm guessing from your makefile that you do want exceptions. Hopefully someone knows the new way to define delete() for a custom delete() function. > c:/djgpp/lang/cxx/stl_algo.h:617: `lrand48' undeclared (first use this = > function) Sorry, can't help with this one. - Tel > ------=_NextPart_000_0037_01BD6256.5948E1A0 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > > > http-equiv=3DContent-Type> > > > >
Linking with stdcxx did help a lot, = > since=20 > several programs compile and run well.But recompile / relinking other = > programs=20 > gives an error message. 
>
This also when I compile / link from = > within=20 > RHIDE.
>
 
>
First the makefile:
>
XLIBS=3D-lstdcxx
heap.exe :=20 > heap.o
     gcc -fsjlj-exceptions -o heap.exe = > heap.o=20 > ${XLIBS}
 
>
heap.o : = > heap.cc
     g++=20 > -c -fsjlj-exceptions heap.cc
 
>
 
>
Then the error message:
>
In file included from=20 > c:/djgpp/lang/cxx/new.h:6,
       &= > nbsp;        =20 > from=20 > c:/djgpp/lang/cxx/stlalgobase.h:52,
     &nbs= > p;          =20 > from=20 > c:/djgpp/lang/cxx/vector:30,
       = > ;         =20 > from heap.cc:5:
c:/djgpp/lang/cxx/std/new.h:26: warning: declaration = > of=20 > `operator delete(void *)' throws different = > exceptions
<internal>:26:=20 > warning: previous declaration here
c:/djgpp/lang/cxx/std/new.h:27: = > warning:=20 > declaration of `operator delete [](void *)' throws different=20 > exceptions
<internal>:27: warning: previous declaration=20 > here
c:/djgpp/lang/cxx/stl_algo.h: In function `void=20 > __random_shuffle<float *, int>(float *, float *, int=20 > *)':
c:/djgpp/lang/cxx/stl_algo.h:617: `lrand48' undeclared (first = > use this=20 > function)
c:/djgpp/lang/cxx/stl_algo.h:617: (Each undeclared = > identifier is=20 > reported only once
c:/djgpp/lang/cxx/stl_algo.h:617: for each = > function it=20 > appears in.)
make.exe: *** [heap.o] Error = > 1
 
> ------=_NextPart_000_0037_01BD6256.5948E1A0--