Mail Archives: djgpp/1998/09/12/04:44:57
On Fri, 11 Sep 1998, Reginald Johnson wrote:
> I'm trying to compile a C++ program that #includes both list.h, and
> math.h, and I
> keep getting errors that make is seem like some function in one is also
> declared in the other. All I want to do is take the sqrt() of a number so
> if somebody can please help me I would greatly appreciate it.
>
> when I compile I get the folloing errors
>
> c:/djgpp/include/math.h(73)Error: redefinition of 'class exception'
> c:/djgpp/include/math.h(79) Error:conflicts with new declaration with C
> linkage
> c:/djgpp/lib/gcc-lib/djgpp/2.81/include/exception(20) Error previous
> declaration of 'struct exception & exception::operator =(const struct
> exception &)' with c++ linkage
>
math.h from djdev201.zip (c:/djgpp/include/math.h) is incompatible with
gcc-2.8.1. Archive gcc281b.zip contains a replacement in directory
lib/gcc-lib/djgpp/2.81/include
Solution: remove c:/djgpp/include/math.h
Also read files in gnu/gcc-2.81 (unfortunatelly I missed this topic
there).
Andris
- Raw text -