Re: [ROOT] Compilation error for latest NewDelete.cxx

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Wed Sep 26 2001 - 18:59:33 MEST


Hi Tony,

   please, take the source again. I've fixed the code in the meanwhile.

Cheers, Fons.



"Colley, Tony" wrote:
> 
> I am using ROOT on a RedHat Linux 7.1 workstation, upgraded with gcc 3.0.1.
> 
> I just updated my ROOT source via CVS within the last hour or so, and I now
> get the following compilation error:
> 
> /usr/local/bin/g++ -O -pipe -Wall -Woverloaded-virtual -fPIC -Iinclude
> -DHAVE_CONFIG -D_REENTRANT -o new/src/NewDelete.o -c new/src/NewDelete.cxx
> new/src/NewDelete.cxx: In function `void* operator new(unsigned int,
> void*)':
> new/src/NewDelete.cxx:230: redefinition of `void* operator new(unsigned int,
> void*)'
> /usr/local/include/g++-v3/new:86: `void* operator new(unsigned int, void*)'
> previously defined here
> new/src/NewDelete.cxx: In function `void* operator new [](unsigned int,
> void*)':
> new/src/NewDelete.cxx:323: redefinition of `void* operator new [](unsigned
> int, void*)'
> /usr/local/include/g++-v3/new:87: `void* operator new [](unsigned int,
> void*)' previously defined here
> make: *** [new/src/NewDelete.o] Error 1
> 
> Just to make sure I hadn't screwed something up locally since the last time
> I built ROOT, I checked out the previous version of NewDelete.cxx (version
> 1.5), and it built without error.
> 
> Cheers,
> Tony Colley
> 
> ITT Industries A/CD
> Fort Wayne, IN  USA

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:00 MET