RE: exclude a file from dictionary generation

From: Fine, Valeri <>
Date: Wed, 1 Mar 2006 10:22:03 -0500

You can use CPP flag

#ifndef __CINT__

in to your class header file to hide that from the CINT dictionary generation.

The compromise solution is to apply #ifndef __CINT__ for the trouble portions of your class only. As result, your class will be present in the dictionary. Your trouble methods and data-members will not.

Hope this helps.

Best regards

> -----Original Message-----
> From:

[] On
> Behalf Of Pietro Govoni
> Sent: Wednesday, March 01, 2006 9:44 AM
> To: roottalk
> Subject: [ROOT] exclude a file from dictionary generation
> Dear ROOTers,
> I am facing a problem linked to the dictionary generation in a
> compiled code.
> Given the fact that I am working in a framework in which I develop my
> own code and it is not trivial to let
> all the collaboration change it for me, I am looking to find a way to
> tell rootcint to ignore a header class.
> The makefile of the framework authomatically passess all the headers
> to the rootcint in order
> to let the dictionary be created.
> Even if the specific class I am referring to is NOT in the LInkDef
> file, nevertheless rootcint is trying to do
> something with it.
> The problem is that the class has some templated methods, where stl
> containers of the templated type appear.
> It seems that this is the problem with rootcint and, given the fact I
> actually do not need the dictionary for that
> class to be generated, I would like to put an instruction in the
> class itself to tell rootcint to ignore that class.
> Is it possible?
> Thank you very much for your kind attention, best regards
> pietro govoni
Received on Wed Mar 01 2006 - 16:22:43 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:57 MET