RE: libCore.so: undefined reference to `TList::TList(TList const&)'

From: Valeri Onuchin <Valeri.Onoutchine_at_cern.ch>
Date: Thu, 27 Jul 2006 13:58:56 +0200


Hi Nick,
I met the same problem today.

make distclean
make

must help.

Regards. Valeriy

-----Original Message-----

From: owner-roottalk_at_pcroot.cern.ch on behalf of Nick West Sent: Thu 7/27/2006 1:35 PM
To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] libCore.so: undefined reference to `TList::TList(TList const&)'  

Hi Rootalk,

I am having trouble building CVS head with gcc 3.2.3 on Scientific Linux SL Release 3.0.4:-

  g++ -g -o bin/root.exe main/src/rmain.o \

             -Llib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree
-lMatrix -lRint -lm -ldl -pthread -rdynamic
  lib/libCore.so: undefined reference to `TQObject::TQObject(TQObject const&)'
  lib/libCore.so: undefined reference to `TList::TList(TList const&)'

It is related to the withdrawal of the copy ctors and assignment operators for a number of classes including TQObject and TList:-

  date: 2006/07/26 13:36:42; author: rdm; state: Exp; lines: +9 -14    Instead of providing default implementations for copy ctor's and assignment

   operators we better make them private (and not implemented) to avoid people

   from accidentally using them. Especially the collections classes and the

   TQObject derived classes. In these classes the default implementations would

   cause havoc due to multiple deletions of the same objects and other    potential memory corruptions.

Now I think I have wiped and recompiled all the .o files used to build libCore.so (although it takes .o files from a number of modules so I might have missed something). Do I need a clean rebuild or are we missing some code updates to sub-classes to disable their ctor's and assignment operators?

Thanks,

Nick West. Received on Thu Jul 27 2006 - 14:00:23 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:00 MET