Did you correctly define the static variables in your TGLineView.cxx source file? Have for example a look in the TGListView.cxx source to see how that is done. -- Fons On Mon, Apr 10, 2000 at 11:44:55PM +0200, Patrick Dupre LCMI wrote: > hello, > > I had to mimic some of the Root class like TGListView, however, I get a > error when I like my objects file : > > TGLineView.o: In function `TGLineVEntry::TGLineVEntry(TGWindow const *, TGString *, TGString **, unsigned int, unsigned long)': > > TGLineView.o(.text+0x52): undefined reference to `TGLineVEntry::fgDefaultGC' > > TGLineView.o(.text+0x5a): undefined reference to `TGLineVEntry::fgDefaultFontStruct' > > These errors are connected to the static variables, it seems that my > variables are unable the share the right memory space. How can this be > fixed ? > May be I could try to get the values of fgDefaultFontStruct, fgDefaultGC, > fgSelPixel by another way ? > > Thank for your help. > > -- > --- > ============================================================================== > Patrick DUPRE | | Tel: (33 4) 76-88-78-51 > CNRS/LCMI (GHMFL) | | Fax: (33 4) 76-85-56-10 > 25 Rue des Martyrs, BP 166 | | http://eschyle.polycnrs-gre.fr > F-38042 GRENOBLE Cedex 09 | | email: pdupre@polycnrs-gre.fr > ============================================================================== -- 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 02 2001 - 11:50:23 MET