www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/12/04:44:57

Date: Sat, 12 Sep 1998 11:39:18 +0200 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: Reginald Johnson <johns_r AT cs DOT odu DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: list.h and math.h Compile errors
In-Reply-To: <Pine.GSO.3.96.980911154731.9319A-100000@wave.cs.odu.edu>
Message-ID: <Pine.A32.3.91.980912113511.35996A-100000@ieva05.lanet.lv>
MIME-Version: 1.0


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 -


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