Find which lib to link against


I want to use root in my c++ app and cannot find info on which .lib file to link against?

For example: I want to use TFile and see in the first line of TFile.h that is is part of the IO library. I happened to guess correctly that I have to link against libRIO.lib because there is “io” in the file name. But is there some way to not have to guess? Cause there are 126 .lib files.

Thanx!

Yes, as Wile said, scroll to the very bottom of https://root.cern.ch/doc/master/classTFile.html

or whatever class you are looking for:

https://root.cern.ch/doc/master/class<TClassIAmLookingFor>.html

and you’ll find the graph there with the library in the center.

Aaaaaaaaaah, hard to find, thank you!