Hi, Everybody
I’m a very beginner in Root and I have trouble with it (Root version 5.27/04; XP; Microsoft Visual C++ Express Edition 2008).
I want to run this code:
[b]#include “TH1F.h”
#include “TPad.h”
#include “TROOT.h”
void DrawGaussian()
{
TH1F* h=(TH1F*)gROOT->FindObject(“h_gaus”);
if( h ){
h->Reset();
} else {
h = new TH1F(“h_gaus”,“Une gaussienne”,100,0.,100.);
}
h->Draw();
for(Double_t x=0; x<100; x++)
{
Double_t f = 20.*exp( -pow(x-50.,2)/2./pow(10,2) );
h->Fill(x,f);
gPad->Modified(); gPad->Update();
}
}[/b]
When trying,
root [0] .L fillHisto.C+
I have the error message below:
Info in TWinNTSystem::ACLiC: creating shared library C:\root\macros\fillHisto_
C.dll
’cl.exe’ n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
Error: external preprocessing failed. (0)
!!!Removing C:\root\macros\fillHisto_C_ACLiC_dict.cxx C:\root\macros\fillHisto_C
_ACLiC_dict.h !!!
Error: C:\root\bin\rootcint: error loading headers…
Error in : Dictionary generation failed!
Info in : Invoking compiler to check macro’s validity
What should I do? PATH is on (C:\root\bin); ROOTSYS on (C:\root)
Thanks for your help.
Chesco