_ROOT Version:6.28
_Platform:Windows 11
_Compiler:Cling, Visual c++, gnu g++
I’m trying to load my libraries at root start up with ‘root -l name.cpp+’ as sugested somewhere here for Linux. It does recognize ‘-L’ – maybe its a Windows thing.
I don’t really care how it’s done – all I want to do is not enter ‘.L name.cpp+’ many times. A scripte would do it but that doesn’t seem to work for ‘…’ commands
I found I could only load one ‘.cpp’ file that way, but I have come up with a solution.
I make a file I call ‘load.cpp’ and it is series of includes like so #include “rFlat.cpp” #include “boostTo.cpp” #include “ProbDStarLNu.cpp” #include “PickAngles.cpp”
‘.L load.cpp++’ creates a single library file (‘.ddl’) with all my stuff in it and available from the command line.
==>load.cpp is my files with the ‘includes’ which puts all the functions specified in a single library…and ‘bDecay.cpp’ is what I’m working on that depends on them.
-L is not a command line argument of root.exe -e is a command line argument of root.exe which says to please execute the next parameter as if it was written on the ROOT command line.