[ROOT] Can't use char **& in ROOT-based class.

From: Chitov Iouri (chitov@lal.in2p3.fr)
Date: Fri Mar 22 2002 - 11:46:54 MET


Hi, rooters,

I try to ROOTify some class, which has rare variable type char **&:

class TConfigIO : public TObject {
...
  int variableNameList (char **& names);
...
  ClassDef(TConfigIO,0)
};

And this leads to the error during compilation stage:

g++  -MD -g -Wall -fno-rtti -fno-exceptions -fPIC -I../include -DSTANDALONE -D_R
EENTRANT -I/exp/nemo/chitov/root/include/root -c TConfigIO.cxx
Generating dictionary TConfigIODict.cxx...
rootcint -f TConfigIODict.cxx -c TConfigIO.h TConfigIOLinkDef.h
g++  -MD -g -Wall -fno-rtti -fno-exceptions -fPIC -I../include -DSTANDALONE -D_R
EENTRANT -I/exp/nemo/chitov/root/include/root -c TConfigIODict.cxx
TConfigIODict.cxx: In function `int G__TConfigIO_variableNameList_5_3(struct G__
value *, const char *, struct G__param *, int)':
TConfigIODict.cxx:314: no matching function for call to `TConfigIO::variableName
List (char *&)'
TConfigIO.h:159: candidates are: TConfigIO::variableNameList(char **&)

It seems like CINT resolve char **&  like char *&.
Compilation OK if  I comment function variableNameList

As this TConfigIO is third-party source, I have no big wish to penetrate inside it.
Any propositions how to solve this problem?

Best wishes,
Yuriy.



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:46 MET