Skip to content

Commit

Permalink
Set search paths for included files for ROOT C++ interpreter (#441)
Browse files Browse the repository at this point in the history
It is my understanding that `TSystem::AddIncludePath()` sets search
paths to look for header files only when ACLiC is used. On the other
hand, `TInterpreter::AddIncludePath()` sets search paths used by the
both interpreter and ACLiC (see the documentation at
https://root.cern/root/html534/TCint.html#TCint:AddIncludePath)
  • Loading branch information
plexoos authored Nov 16, 2022
1 parent ac8dc61 commit 7ff5c0d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion StRoot/macros/rootlogon.C
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,10 @@

std::cout << " *** Start at Date : " << TDatime().AsString() << std::endl;

gSystem->AddIncludePath(" -I. -I./.$STAR_HOST_SYS/include -I./StRoot -I$STAR/.$STAR_HOST_SYS/include -I$STAR/StRoot -I/usr/include/mysql");
gInterpreter->AddIncludePath(".");
gInterpreter->AddIncludePath("./.$STAR_HOST_SYS/include");
gInterpreter->AddIncludePath("./StRoot");
gInterpreter->AddIncludePath("$STAR/.$STAR_HOST_SYS/include");
gInterpreter->AddIncludePath("$STAR/StRoot");
gInterpreter->AddIncludePath("/usr/include/mysql");
}

0 comments on commit 7ff5c0d

Please sign in to comment.