Error compiling outside root

Im trying to compile this outside root for debugging proposes. What im missing?

g++ -o babar babar_planob.o T3BdyDecay.o TVarD.o TAmplitude.o TPDF.o Funcs.o -O2 -L/usr/local/root/lib -L/usr/local/lib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -pthread -lm -ldl -rdynamic -lGui -lgsl -lgslcblas
T3BdyDecay.o(.text+0x8b1): In function __static_initialization_and_destruction_0(int, int)': : undefined reference toROOT::GenerateInitInstance(T3BdyDecay const*)'
T3BdyDecay.o(.gnu.linkonce.d._ZTV10T3BdyDecay+0x14): undefined reference to T3BdyDecay::ShowMembers(TMemberInspector&, char*)' T3BdyDecay.o(.gnu.linkonce.d._ZTV10T3BdyDecay+0x18): undefined reference toT3BdyDecay::Streamer(TBuffer&)'
T3BdyDecay.o(.gnu.linkonce.t._ZNK10T3BdyDecay3IsAEv+0x14): In function T3BdyDecay::IsA() const': : undefined reference toT3BdyDecay::Class()'
TVarD.o(.text+0x52): In function TVarD::TVarD(TString, double, double, bool, double, double)': : undefined reference tovtable for TVarD’
TVarD.o(.text+0x146): In function TVarD::TVarD(TString, double, double, bool, double, double)': : undefined reference tovtable for TVarD’
TVarD.o(.text+0x661): In function __static_initialization_and_destruction_0(int, int)': : undefined reference toROOT::GenerateInitInstance(TVarD const*)‘
TVarD.o(.gnu.linkonce.t._ZN5TVarDC1Ev+0x19): In function TVarD::TVarD()': : undefined reference tovtable for TVarD’
TVarD.o(.gnu.linkonce.t._ZN5TVarDD1Ev+0x18): In function TVarD::~TVarD()': : undefined reference tovtable for TVarD’
TAmplitude.o(.text+0x19): In function TAmplitude::TAmplitude(T3BdyDecay*, TString, TString, TVarD*, TVarD*, TVarD*, TVarD*, TVarD*)': : undefined reference tovtable for TAmplitude’

Hi,
you are missing a dictionary; see the chapter “adding your own classes” in the users’ guide.
Axel.