[ROOT] rootcint and operator<<, operator>> problem

From: Jacek M. Holeczek (holeczek@us.edu.pl)
Date: Sun May 27 2001 - 13:45:01 MEST


Hi,
The core of the problem can simply be explained in four easy steps.
Step 1. Create a small interface "x.hxx" :
	#include <iostream>
Step 2. Create a small LinkDef file "xLinkDef.h" :
	#ifdef __MAKECINT__
	
	#pragma link off all typedefs;
	#pragma link off all globals;
	#pragma link off all functions;
	#pragma link off all classes;
	
	#pragma link C++ function operator << ;
	#pragma link C++ function operator >> ;
	
	#endif /* ifdef __MAKECINT__ */
Step 3. Apply rootcint to the interface :
	rootcint -f G__x.cxx -c x.hxx xLinkDef.h
Step 4. Try to compile the created dictionary :
	gcc -I${ROOTSYS}/include -c G__x.cxx
Well ???
Thanks in advance,
Jacek.
P.S. A "No No" is changing "#pragmas" for the operators. They MUST stay as
     they are present above. Jacek.



This archive was generated by hypermail 2b29 : Fri Jun 08 2001 - 11:51:25 MEST