www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/02/13:17:03

From: "Eric J. Whitney" <eric AT aero DOT usyd DOT edu DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: 'math' exception conflicts with 'new' exception
Date: Fri, 02 Apr 1999 15:35:07 +1000
Organization: The University of Sydney, Australia
Lines: 24
Message-ID: <3704570B.71211175@aero.usyd.edu.au>
NNTP-Posting-Host: pc-114.inthouse.usyd.edu.au
Mime-Version: 1.0
X-Trace: metro.ucc.usyd.edu.au 923031407 2308 172.16.79.114 (2 Apr 1999 05:36:47 GMT)
X-Complaints-To: usenet AT news DOT usyd DOT edu DOT au
NNTP-Posting-Date: 2 Apr 1999 05:36:47 GMT
X-Mailer: Mozilla 4.03 [en] (Win95; I)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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...).

I understand that the compiler doesn't support namespaces (lots of
#include 0 's in the header).  So how do I go about fixing this
conflict.  I can't see any mechanism for doing this.....   Also I want
both to be available, so I can implement my own math handler.

Does anyone have a workaround for this?

Any help appreciated.

--
---------------------------------
Eric "The Wingnut" Whitney
<eric AT aero DOT usyd DOT edu DOT au>
---------------------------------


- Raw text -


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