Hi Pascal, the ROOT libs must be linked using the C++ compiler otherwise the global static objects that it relies on don't get constructed. So do something like: cc -c main.c CC -o testroot main.o p.o `root-config --libs` Cheers, Fons. Pascal Perrodo wrote: > > Hi, > > I call ROOT (Version 2.23/04) functions (creating histograms and trees) > in a .cxx routine which is called from a main written in .c. I wrote a > mininal example which can be found on > > /afs/cern.ch/user/p/pperrodo/public/testroot > > Makefile > main.c > p.cxx > > When I run it, I get > > Warning in <TClass::TClass>: no dictionary for class TFile is available > Warning in <TClass::TClass>: no dictionary for class TH1F is available > Warning in <TClass::TClass>: no dictionary for class TDirectory is > available > Warning in <TClass::TClass>: no dictionary for class TKey is available > Warning in <TClass::TClass>: no dictionary for class TH1 is available > Warning in <TClass::TClass>: no dictionary for class TAxis is available > Warning in <TClass::TClass>: no dictionary for class TAttAxis is available > Warning in <TClass::TClass>: no dictionary for class TCollection is > available > > How can I get rid of this ? > > Thanks on advance. > Cheers. > Pascal Perrodo. > > +-------------------------------------------------------------------------+ > | Tel : 04 50 09 16 32 (from France), 00 33 4 50 09 16 32 (from abroad) | > | FAX : 04 50 27 94 95 (from France), 00 33 4 50 27 94 95 (from abroad) | > | | > | LAPP, Chemin de Bellevue, BP 110, F-74941 Annecy-le-Vieux CEDEX | > +-------------------------------------------------------------------------+ -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:42 MET