What exactly are `root-config --cflags`?

I have compiled the dictionary and software for a .so using

g++ -c -O2 -Wall -fPIC

and using

g++ root-config --cflags -c

and wonder what flags are used by --cflags.

I got a .so to load in ROOT with out any undefined symbols errors and wondered if it was the change in the flags used or a change in the config.h file.

I know, I should just test both ways but would still wonder what is included in --cflags.

Thank you


just run root-config --cflags and it will tell you. Its output depends on your configuration, and that’s exactly why we have it.

Cheers, Axel.