Redefinition error when building libraries

Hi all,

Using root 6 to compile libraries which compile fine under root 5, I get the following error during compilation.

Does anyone know what goes wrong here? The error message is not really helpfull.

Edit compiling saying.
.L libstat.C++
.L binning2.C++
.L toygenerator.C++

Edit:

Header guard solved the problem, even though they were not included multiple times
toygenerator.h (15.3 KB)
libstat.h (1.74 KB)

Hi,

I think more information is needed.
could you post the header, the implementation file and the command that fails?
What do you mean by “compiling libraries under root”?

Cheers,
Danilo