[ROOT] Linker error

From: Patrick Dupre LCMI (pdupre@labs.polycnrs-gre.fr)
Date: Tue Apr 11 2000 - 17:02:29 MEST


Hello,

I first generated a histaction.cc file from guidemo. And I compiled,
every thing run fine.
Then, I made a copy of TGListView.h, TGListView.cxx, TGFileContainer.cxx and
of TGFileContainer.h. I modify le name of all the classes to avoid 
confusion, than I recompile. The compilation is OK, but the linker
gives me the following error (include my new classes):
`TGLVEntryn::fgDefaultGC'
TGListViewn.o(.text+0x224): undefined reference to `TGLVEntryn::fgDefaultFontStruct'
TGListViewn.o: In function `TGLVEntryn::DoRedraw(void)':
TGListViewn.o(.text+0x819): undefined reference to `TGLVEntryn::fgSelPixel'
...................

The proleme comes from the static variables (fg....).

What shoudl I do ? PLEASE; Is there an option of compilation with is wrong ?
Thank.

-- 
---
==============================================================================
   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
==============================================================================



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:23 MET