Running a macro

Hi, I am trying to run this macro called no_scaling()… but it gives me the following error:
Error: Function no_scaling() is not defined in current scope /home/sh/Desktop/Source/root/cint/cint/stl/vector.dll:1:
*** Interpreter error recovered ***

Could anyone tell me whats going on? Any help to fix this problem would be greatly appreciated.


Could you post the shortest possible version of your script reproducing the problem?
and tell us which version of ROOT you use?


I am using the following version of Root
ROOT 5.24/00
CINT/ROOT C/C++ Interpreter version 5.17.00, Dec 21, 2008

What exactly do you mean by posting a script? Do you want a jist of the code? Following are the first few lines of the macro:

#include <TGraphErrors.h>
#include <TGraphAsymmErrors.h>
#include <TFile.h>
#include <TCanvas.h>
#include <TF1.h>
#include <TH1.h>
#include <TMath.h>
#include <TStyle.h>
#include <TLegend.h>
#include <TLatex.h>


using namespace std;

TGraphErrors* GetBaryonGraph158(Double_t ybeam);
TGraphAsymmErrors* GetBaryonGraph62(Double_t ybeam);
TGraphErrors* GetBaryonGraph200(Double_t ybeam);

void limitingstoppingExp()
// gStyle->SetTextFont(132);

The function in your script no_scaling.C is named “limitingstoppingExp()”.
when executing .x no_scaling.C CINT is trying to call a function with the same name in the script. you should do;

root > .L no_scaling.C root > limitingstoppingExp()
see first pages of the Users guide for more details