[ROOT] Compilation error for latest NewDelete.cxx

From: Colley, Tony (Tony.Colley@itt.com)
Date: Wed Sep 26 2001 - 17:50:03 MEST


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



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