Am a new user, and pardon me if my questions are too basic.
I would like to use ROOT command line environment to test out a macro with third party libraries. i.e the macro has custom libraries such as IT++. Is it possible to do this in CINT?
Appreciate it if some one can help.
You can indeed use external libraries in your macro with (for example):
I finally got it to work. I had to run your command first in the root cling session, and then run .x script.C.
Previously, I added the command within the script itself, and it was giving me all kinds of errors.
As a follow up: Is it possible to start root interpreter by loading a few libraries- in some kind of .rootrc file.
I did try this, but it didn’t work. Thanks again for your time.
Also,this works, as it loads the library. I wonder if there is cleaner way, such as keeping the expression gSystem -> … saved in a logon file, which is loaded on startup?
root -e “gSystem->Load(“libTP”)”
You can use the
rootlogon.C macro (just search the forum for it…)
Thank you. Yes, this whole workflow works fine.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.