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

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Thu, 27 Jul 2006 09:42:41 -0500


You need to do:

        rm net/src/G__Net*

Cheers,
Philippe.

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

From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Nick West
Sent: Thursday, July 27, 2006 6:35 AM
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 - 16:48:39 MEST

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