[ROOT] CINT and operator methods

From: Roger Moore (rwmoore@fnal.gov)
Date: Wed Dec 18 2002 - 21:32:57 MET


I have just encountered another problem which I alos believe is CINT
related. When I add the following line to my linkdef file:

#pragma link C++ function moan::UnaryFunctionCut<std::less<double> >
operator<(UnaryFunction<PhysicsObject *> &,double);

I get the following error from rootcint:

Error: Unexpected EOF G__fgetstream_template():2 FILE:LinkDef.h LINE:16
Advice: You may need to use +P or -p option
Warning: #pragma link, function less<double>
>operator<(UnaryFunction<PhysicsObject*>&,double) not found FILE:LinkDef.h
LINE:16
Warning: Error occured during reading source files
Warning: Error occured during dictionary source generation

However when I change the name of the function to 'less' then it works
correctly. The version of ROOT which I am using is 3.03/09.

Roger



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