【问题标题】:Execute root commands to link before starting execution在开始执行之前执行root命令链接
【发布时间】:2021-08-09 21:52:11
【问题描述】:

有没有办法告诉root 在开始时执行(比如说)以下命令?

.L /usr/lib/libgsl.so
.L /usr/lib/libgslcblas.so

我觉得这很方便,因为我每次启动 root 时都必须执行此操作。我的 .C 文件使用了这些库。

我找到了一个选项-e,但我不能将它用于多行命令。

【问题讨论】:

    标签: root-framework


    【解决方案1】:

    当然,只需将以下内容添加到 ~/.rootlogon.C 中(或者创建一个以防万一):

    {
    // old content here
      gROOT->ProcessLine(".L /usr/lib/libgsl.so");
      gROOT->ProcessLine(".L /usr/lib/libgslcblas.so");
    }
    

    【讨论】:

      猜你喜欢
      • 2013-11-04
      • 2012-01-21
      • 1970-01-01
      • 1970-01-01
      • 2011-06-05
      • 1970-01-01
      • 1970-01-01
      • 2012-02-10
      相关资源
      最近更新 更多