Mail Archives: djgpp/1998/07/13/06:15:17
On 12 Jul 1998, stjacy wrote:
> #include <typeinfo>
> #include <math.h>
>
> int main()
> {}
>
> The compiler complaind that there are name conflict about "exception"!
This is a known problem with math.h from DJGPP v2.01: one of the
functions there uses struct exception, and `exception' is a reserved word
in the latest versions of C++. v2.02 corrects that.
If you can't avoid using <math.h>, I suggest the following workaround
(warning: untested code follows):
#define exception __exception
#include <math.h>
#undef exception
#include <typeinfo>
int main ()
{}
- Raw text -