Dictionary problem

Sorry for my probably naive question. I just want to read the root file in separate program.
I just started to write the program, this is how it looks like:

///////////////////////////////////////////////////////////////////////////
#include “TROOT.h”
#include “TTree.h”
#include “TCanvas.h”
#include
#include <TStyle.h>
#include “TApplication.h”
#include <Riostream.h>
#include “TSystem.h”
#include
#include

int main()
{

std::cout<<“Some test”<<std::endl;
TFile *f=new TFile(“CBNT.root”);
}
///////////////////////////////////////////////////////////////
I complile it without any problems, but when I run it I get the following:

Warning in TClass::TClass: no dictionary for class TTree is available
Error in TObjArray::At: index 15 out of bounds (size: 13, this: 0x09368958)
Warning in TClass::TClass: no dictionary for class TBranch is available
Warning in TClass::TClass: no dictionary for class TLeafI is available
Warning in TClass::TClass: no dictionary for class TLeaf is available
Warning in TClass::TClass: no dictionary for class TLeafF is available
Warning in TClass::TClass: no dictionary for class TVirtualIndex is available
Warning in TClass::TClass: no dictionary for class TBranchRef is available

How I can handle these warnings? Do I need to implement my own Streamer for this ?

It looks like you forgot to link your program with libTree.so

Rene

Thank you!
I thought I would be more complicated