'How to Fix: Error: Segmentation Violation and IncludePath Needs to be Updated from Debugger

I am working with ROOT and have ROOT installed in my computer. I am writing my code using Visual Studio. In my code I have the following header files:

#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"

My code can't run however and it generates a segmentation violation. When I run the debugger in Visual Studio it indicates that the source files cannot be found and that I need to update my includePath. However, I have already set my compilerPath to /usr/bin/gcc which I in many sites that is how to fix such errors. I also know when I install ROOT these header files should already be installed with it. Does anyone know how I can fix these errors? Thanks!



Solution 1:[1]

Try to follow any of these tutorials to correctly setup a debugger IDE:

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ferdymercury