Rootcint with -inlineInputHeader and #pragma once

Hey ROOT Experts,

I am trying to compile an overly complicated analysis package that uses the #pragma once preprocessor directive. I am trying to make this package portable such that I can tar the area up, transfer it to a batch/worker node, untar, and run it without re-compiling. Right now, I’m trying to do that using the “-inlineInputHeader” in rootcint (I’m using ROOT 6.06/01, so I assume rootcint==cling). However, it looks like -inlineInputHeader is incompatible with the #pragma once preprocessor directive.

Does anyone have a solution to this problem? Is there a better way to include the compiled headers than -inlineInputHeader.


Try the current ROOT release.

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