I have a quite strange problem with this little program:
int main(int argc, char **argv)
TApplication theApp(“App”, &argc, argv);
std::cout << argc << std::endl;
for (unsigned int nfiles = 1 ; nfiles < argc ; nfiles++)
std::cout << nfiles << “\t” << argv[nfiles] << std::endl;
If I leave the TApplication theApp(…) at the top then this call of TrackingAna.exe ignores the input argument:
and the print out is just
(which is num arguments and the first on is the program itself).
If I move TApplication past the print out then everything is fine. It prints
now the fun part is if I change the argument i.e. replace the .1 at the end with .2 then it works again …
any other string but the one above seems to work.
When I give 2 arguments in the “non working” case and the first one is
and the second one is
then it prints:
meaning it ignores the first string again. I am very confused about what is going on here!
My root version is root_v5.26.00.Linux-slc5_amd64-gcc3.4