<TClass::TClass>: no dictionary for class TPaletteAxis

I am trying to get display histograms from a root file in the following manner, but I get an error
[color=red]Warning in TClass::TClass: no dictionary for class TPaletteAxis is available[/color]
Googling for help hasn´t yielded any clues!!!
BUT as a script it works!!(removing int main())

[color=green]#include
//gROOT->Resest();
#include
#include <stdio.h>
#include <string.h>
#include <TH2.h>
#include <TH1.h>
#include <TStyle.h>
#include <TROOT.h>
#include <TCanvas.h>
#include <TKey.h>
#include <TFile.h>
#include <TF1.h>
#include <TLatex.h>
#include <TColor.h>
#include <TPaveLabel.h>
#include <TApplication.h>

void analyse_out();

int main()
{
analyse_out();
return 0;
}

void analyse_out() {
//TFile *outfile = gROOT->FindObject(“outfile.root”); if (outfile) outfile->Close();

TFile *file=new TFile("outfile.root");
TH2F *Histo_2Db = (TH2F*)file->Get("Histo_2Db");
TCanvas *MyCanvas1 = new TCanvas("MyCanvas1","Peak Reflectivity Map",10,10,700,500);
gPad->SetRightMargin(0.15);
gPad->SetLeftMargin(0.1);
gPad->SetTopMargin(0.1);
gPad->SetBottomMargin(0.1);
Histo_2Db->SetContour(100);
gStyle->SetPalette(1);
Histo_2Db->SetStats(kFALSE);   // suppress statistics box
Histo_2Db->Draw("colz");
MyCanvas1->Draw();
MyCanvas1->Update();

}[/color]

to test your script we need the file outfile.root ?
which root version are you using ?
on which platform ?

I am using root version 5.20 on Fedora 9, Linux Kernel 2.6.25.10-86.fc9.i686 #1 SMP
[color=green]outfile.root[/color] is 2.7MB which is beyond the 2MB limit for attachements. So I couldn´t send it. What can one do?
Thanks for your help.

may be you can create a smaller file reproducing the problem or put your file in some accessible place (afs, web …)

I have attached [color=green]outfile.root[/color], 1.8MB.
Remember it is the compiled script that is giving this error. As a CINT script it works fine.
Thanks for your help!
outfile.root (1.78 MB)

The main program should be:

int main(int argc, char *argv[])
{
   TApplication theApp("App", &argc, argv);
   analyse_out();
   return 0;
}

Thank you very much! Now works! Whew!!!