Hey rooters
I am working on adding a new class called ‘RooMCMC’ to the roofitcore, but when I try to compile I get an undefined reference to TCanvas and TPad. If I look at the output:
Do I understand then that you add your class directly in the sources of ROOT? In this case I would recommend you that you use the supported build method which is CMake (see https://root.cern.ch/building-root) and then you modify the file roofit\roofitcore\CMakeLists.txt adding the library Gpad to the lines
ROOT_STANDARD_LIBRARY_PACKAGE(RooFitCore
HEADERS ${headers1} ${headers2} ${headers3} ${headers4}
DICTIONARY_OPTIONS "-writeEmptyRootPCM"
DEPENDENCIES Core Hist Graf Matrix Tree Minuit RIO MathCore Foam)
Yes I did.
Ok Thanks for the advice. I will use another approach, I deleted the function using TCanvas then it compiled correctly and I will add it to a Tutorial where people can copy it from.