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

C++ 如何修复:错误:分段冲突和IncludePath需要从调试器更新,c++,c,include,header-files,root-framework,C++,C,Include,Header Files,Root Framework,我正在使用ROOT并在我的计算机中安装了ROOT。我正在使用VisualStudio编写代码。在我的代码中,我有以下头文件: #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/V

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

#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时,这些头文件应该已经随它一起安装了。有人知道我如何修复这些错误吗?
谢谢