Static Compilation of ROOT Class Dictionary

I have looked around on a few posts on this forum but I have not been able to find a definitive answer to this question.

I am using ROOT version 6. I would like to be able to statically compile a ROOT dictionary for a custom class as part of an executable that I can copy onto another machine to execute (e.g. a computing grid). On the computing grid, I will have ROOT shared libraries available, so I do not need to statically compile ROOT itself, just the custom class dictionary.

My understanding is that normally ROOT needs at runtime both the class header file and the .pcm file in order to build the class dictionary. Is there a way around this, so that all of the runtime dependencies that ROOT needs are in the single executable file?



@axel should be able to help here.

Hi Gray,

We are reducing the number of files; in the upcoming v6.20 it will be

  • rdict.pcm
  • the actual pcm

if you decide to modularize your classes (i.e. no more headers). We will soon provide info on how to do that.

Cheers, Axel

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.