Using ROOT in a c++ code

$(root-config --cxx --cflags) file1.cpp file2.cpp file3.cpp main.cpp $(root-config --libs)