Running macro gives fct not defined

Hi all,

I am a bit lost trying to run just a simple macro (file called mcore_plots.cxx)

#include “Riostream.h”
#include “TROOT.h”

void mcore_plots(){
ifstream in;"/scratch/…");


however, I have not managed to get it run (neither in batch nor explicitely loaded/exexcuted interactively), e.g., interactively when reloading the script and trying to run the function - which does not seem to be loaded at all - contrary to the messages??

root [4] .L mcore_plots.cxx reloading /home/monuser/bin/./mcore_plots.cxx 0 reloading Riostream.h 0 reloading RConfig.h 0 reloading RVersion.h 0 reloading fstream 0 reloading fstream.h 0 reloading iomanip 0 reloading TH1F.h 0 reloading TH1D.h 0 reloading TH2F.h 0 reloading TH2D.h 0 root [5] mcore_plots() Error: Function mcore_plots() is not defined in current scope (tmpfile):1: *** Interpreter error recovered ***

I suppose I am missing something obvious here??
Maybe somebody has an idea for me?

Cheers and thanks,


You seem to reload that script - and apparently CINT doesn’t manage… You could try to have it compiled (.L mcore_plots.cxx+), maybe that helps…

Cheers, Axel.