I’m trying to add event handler for TPads obtained by Divide(n, m) call on my TCanvas. Connect function expects me to pass function as a string, but since I use gcc for my app cint doesn’t know about functions I have so it gives me error about missing slot. After some googling I found that I should probably use rootcint utility to generate some special file which would tell cint that there is certain function with certain arguments with entry point at certain adress.
Here is what I am doing:
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ function event_handler;
And though this works ok with class samples from root.cern.ch/root/CintGenerator.html , it is still unclear to me how this file would tell cint to use my class.
I don’t understand much about what I’am doing right now, maybe this is the wrong way to do this.
Is there any solution to use Connect() with functions from my code?