如何修复:错误:分段冲突和IncludePath需要从调试器中更新



我正在使用ROOT,并且在我的计算机中安装了ROOT。我正在使用Visual Studio编写代码。在我的代码中,我有以下头文件:

#include "ROOT/RDataFrame.hxx"
#include "ROOT/RVec.hxx"
#include "ROOT/RDF/RInterface.hxx"
#include "TCanvas.h"
#include "TH1D.h"
#include "TLatex.h"
#include "TLegend.h"
#include "Math/Vector4Dfwd.h"
#include "TStyle.h"

但是,我的代码无法运行,并且会产生分段冲突。当我在Visual Studio中运行调试器时,它指示找不到源文件,并且我需要更新includePath。然而,我已经将我的compilerPath设置为/usr/bin/gcc,这是我在许多网站中修复此类错误的方法。我也知道当我安装ROOT时,这些头文件应该已经和它一起安装了。有人知道我如何修复这些错误吗?谢谢

尝试按照以下任何教程正确设置调试器IDE:

  • https://root.cern/blog/code-horsepower-f1
  • https://root.cern/blog/debuging-root-scripts-in-eclipse
  • https://root.cern/blog/root-on-vscode

最新更新