www.delorie.com/archives/browse.cgi | search |
Newsgroups: | comp.os.msdos.djgpp |
From: | manfred DOT heumann AT uni-bielefeld DOT de (Manni Heumann) |
Subject: | Re: 'math' exception conflicts with 'new' exception |
References: | <3704570B DOT 71211175 AT aero DOT usyd DOT edu DOT au> |
X-Newsreader: | News Xpress 2.01 |
Date: | Fri, 02 Apr 1999 10:05:17 GMT |
NNTP-Posting-Host: | ppp39-15.hrz.uni-bielefeld.de |
Message-ID: | <37048855.0@news.uni-bielefeld.de> |
X-Trace: | 2 Apr 1999 11:05:25 +0200, ppp39-15.hrz.uni-bielefeld.de |
Lines: | 31 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
In article <3704570B DOT 71211175 AT aero DOT usyd DOT edu DOT au>, "Eric J. Whitney" <eric AT aero DOT usyd DOT edu DOT au> wrote: >Hi. > >I'm using DJGPP 2.8.0 and RHIDE. I'm cross-compiling a program >originally written in Borland C++ 5.02. In some files, I include ><vector> and <math.h> and I get a conflict between the math exception >mechanism (struct exception...) and the new exception mechanism (class >exception...). [snip] > >Does anyone have a workaround for this? > >Any help appreciated. > It's easy, although a little hidden: Go to your djgpp directory and than to lib/gcc-lib/djgpp/ and the subdirectory there that corresponds your c++ library (e.g. "2.81" or "egcs-291.66"). Here you will find yet another subdirectory called "include". This contains a file "math.h". Take it and replace your old math.h in djgpp/include. Now everything should compile fine. You can also find this in the FAQ (section 8.19 "C++ exceptions support"). -- ---------------------------------------------------------------------- Manni Heumann Bielefeld, Germany ----------------------------------------------------------------------
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |