delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/16/08:46:25

From: <telford AT xenon DOT triode DOT net DOT au>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In comp.os.msdos.djgpp merser <merser AT image DOT dk> 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
> <internal>: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

> <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
> <HTML>
> <HEAD>

> <META content=3Dtext/html;charset=3Diso-8859-1 =
> http-equiv=3DContent-Type>
> <META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT color=3D#000000 size=3D2>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.</FONT>&nbsp;</DIV>
> <DIV><FONT color=3D#000000 size=3D2>This also when I compile / link from =
> within=20
> RHIDE.</FONT></DIV>
> <DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT color=3D#000000 size=3D2>First the makefile:</FONT></DIV>
> <DIV><FONT color=3D#000000 size=3D2>XLIBS=3D-lstdcxx<BR>heap.exe :=20
> heap.o<BR>&nbsp;&nbsp;&nbsp;&nbsp; gcc -fsjlj-exceptions -o heap.exe =
> heap.o=20
> ${XLIBS}</FONT>&nbsp;</DIV>
> <DIV><FONT color=3D#000000 size=3D2>heap.o : =
> heap.cc<BR>&nbsp;&nbsp;&nbsp;&nbsp; g++=20
> -c -fsjlj-exceptions heap.cc</FONT>&nbsp;</DIV>
> <DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT color=3D#000000 size=3D2>Then the error message:</FONT></DIV>
> <DIV><FONT color=3D#000000 size=3D2>In file included from=20
> c:/djgpp/lang/cxx/new.h:6,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
> nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
> from=20
> c:/djgpp/lang/cxx/stlalgobase.h:52,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
> p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
> from=20
> c:/djgpp/lang/cxx/vector:30,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
> ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
> from heap.cc:5:<BR>c:/djgpp/lang/cxx/std/new.h:26: warning: declaration =
> of=20
> `operator delete(void *)' throws different =
> exceptions<BR>&lt;internal&gt;:26:=20
> warning: previous declaration here<BR>c:/djgpp/lang/cxx/std/new.h:27: =
> warning:=20
> declaration of `operator delete [](void *)' throws different=20
> exceptions<BR>&lt;internal&gt;:27: warning: previous declaration=20
> here<BR>c:/djgpp/lang/cxx/stl_algo.h: In function `void=20
> __random_shuffle&lt;float *, int&gt;(float *, float *, int=20
> *)':<BR>c:/djgpp/lang/cxx/stl_algo.h:617: `lrand48' undeclared (first =
> use this=20
> function)<BR>c:/djgpp/lang/cxx/stl_algo.h:617: (Each undeclared =
> identifier is=20
> reported only once<BR>c:/djgpp/lang/cxx/stl_algo.h:617: for each =
> function it=20
> appears in.)<BR>make.exe: *** [heap.o] Error =
> 1</FONT>&nbsp;</DIV></BODY></HTML>

> ------=_NextPart_000_0037_01BD6256.5948E1A0--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019