compilation problem, cvs and gcc4.0.2

From: Yiqun Wang <yqwang_at_rcf.rhic.bnl.gov>
Date: Tue, 8 Nov 2005 17:45:08 -0500 (EST)


Hi,

I am trying to compile ROOT cvs version with gcc4.0.2 (Mandriva Cooker), and ran into the following error in Reflex module. I recently upgraded the compiler. Previously with gcc4.0.1 I did not encounter any problem. But then again there was some major changes in the ROOT cvs source too.

g++ -O -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -o reflex/src/FuncHandler.o -c reflex/src/FuncHandler.cxx reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunRetType(R (C::*)())': reflex/src/FuncHandler.cxx:23: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*' include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunRetType(R (C::*)(T0))': reflex/src/FuncHandler.cxx:31: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*' include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunRetType(R (C::*)(T0, T1))':
reflex/src/FuncHandler.cxx:39: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*' include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunRetType(R (C::*)(T0, T1, T2))':
reflex/src/FuncHandler.cxx:47: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*' include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunRetType(R (C::*)(T0, T1, T2, T3))':
reflex/src/FuncHandler.cxx:55: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*' include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)'

The error message went on for dozens more lines.

Yiqun Wang Received on Tue Nov 08 2005 - 23:45:23 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:13 MET