I have a .C file with the function definition, evaluate function and analytical integral methods and a corresponding .h file. I added the header file to my macro and hoped this would be sufficient for it to be able to use the function in the file, but it seems I am missing a step. I run it and get errors like:
The macro is trying to use the function to fit some pseudo data. I don’t know how to make it find and recognise the contents of the function.C file, I thought adding the function .h file to my fitting macro would do the trick but I must be missing a step. Or a few steps. Do I need to load the function.C file from the root command line or something before I run the fitting macro that will use it?