Inclusion of <math.h> when moving source from Linux to MSDOS caused the following error:
C:\src>gxx -c tranp.c > error.txt
In file included from parse.y:10:
c:/djgpp/include/math.h:73: redefinition of `class exception'
c:/djgpp/lib/gcc-lib/djgpp/2.81/include/exception:20: previous definition here
c:/djgpp/lib/gcc-lib/djgpp/2.81/include/exception:20: previous declaration of `e
xception::exception(const struct exception &)' with C++ linkage
c:/djgpp/include/math.h:79: conflicts with new declaration with C linkage
c:/djgpp/lib/gcc-lib/djgpp/2.81/include/exception:20: previous declaration of `s
truct exception & exception::operator =(const struct exception &)' with C++ link
age
c:/djgpp/include/math.h:79: conflicts with new declaration with C linkage
c:/djgpp/include/math.h:79: confused by earlier errors, bailing out
This was not a problem for me (as I had included math.h in error in my original code as it does not use it) but I thought you might want to know.
I think this is in 2.01 but the exact dates and files I downloaded are as follows (gxx -v reports 2.8.1).
Volume in drive C is 60062
Volume Serial Number is 3F3B-10DC
Directory of C:\my documents\djgpp
DJDEV201 ZIP 1,538,295 10-06-98 3:20p djdev201.zip
BSN125B ZIP 130,183 10-06-98 3:20p bsn125b.zip
FLX254B ZIP 181,317 10-06-98 3:21p flx254b.zip
BNU281B ZIP 1,896,445 10-06-98 3:21p bnu281b.zip
LGP2811B ZIP 596,811 10-06-98 3:21p lgp2811b.zip
GCC281B ZIP 1,311,315 10-06-98 3:21p gcc281b.zip
CSDPMI4B ZIP 41,506 10-06-98 3:24p csdpmi4b.zip
MAK377B ZIP 247,613 10-06-98 3:24p mak377b.zip
GPP281B ZIP 1,281,235 10-06-98 3:25p gpp281b.zip