jeudi 27 juin 2019

Compiling a c++ including root libraries with g++

I am trying to compile a c++ program, which uses the TF1 library of the ROOT-framework, with the g++ compiler.

I tried

I already tried

g++ a.cpp -o 'root-config --cflags --glibs' 

But that just gives me the error

g++: error: no such file or directory: 'root-config --cflags --glibs'

I am very new to both ROOT and C++ so help is very mucha appreciated!

Aucun commentaire:

Enregistrer un commentaire