I have the following minimal C++ program and sledgehammer of a CMake file. The program compiles and links fine. If I uncomment the TASImage line, the program fails to link. What might I be doing wrong here? Do I need to add some kind of link library reference for libASImage maybe? If so what exactly and what do I need to download?
main.cpp
#include <TASImage.h>
#include <TCanvas.h>
int main(int argc, char* argv[]) {
TCanvas* canvas = new TCanvas("canvas", "canvas");
//TASImage* im = new TASImage(1,2);
return 0;
}
You haven’t explicitly stated the pattern here but let me try to infer it.
You replace libXXX from the documentation with ROOT::XXX in your CMake file, based on the tree at the bottom of the documentation page.
Some ROOT::XXX values seem to cover multiple classes, for example TH1F has parent libHist, but I don’t need to include ROOT::Hist in my CMake file. The full list of .so files also varies between versions so searching there isn’t the answer either.
How do I determine what ROOT::XXX values contain which classes, e.g. ROOT::Core or ROOT::RIO