You've a linking error because you give the wrong compiler options to make a shared lib (it tries to link an application). Do: egcs -g -fPIC -I/usr/local/root/include -c TJView.cxx TJViewDict.C egcs -g -shared TJView.o TJViewDict.o -o TJView.so Cheers, Fons. > I am trying to implement a new TView class (so that we can do "live" > rotation without the box). > > When I run rootcint: > > rootcint TJViewdict.C -c TJView.h > > everything runs o.k. > > then when I compile > > egcs -g -I/usr/local/root/include TJView.cxx TJViewdict.C -o TJViewdict.sl > > > I get errors over and over of the type > > /home/michaelk/hallc/evdisplay/TJViewdict.C:130: undefined reference to > `G__search_typename2' > /home/michaelk/hallc/evdisplay/TJViewdict.C:131: undefined reference to > `G__setnewtype' > /home/michaelk/hallc/evdisplay/TJViewdict.C:133: undefined reference to > `G__search_typename2' > /home/michaelk/hallc/evdisplay/TJViewdict.C:134: undefined reference to > `G__setnewtype' > > any ideas? > > > Michael > > -- 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:36 MET