[Fwd: Re: Why the class is declared as undefined]

Nick van Eijndhoven (Nick@phys.uu.nl)
Tue, 09 Feb 1999 09:43:44 +0100


This is a multi-part message in MIME format.

--------------146511EE4577
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Dear friends,
I received a mail that the cern email service to the roottalk
list has been interrupted yesterday.
I was asked to send the original mail again, so here it is.
In case you have received this mail now several times, it's
the email system to blame.

-- 

Cheers, Nick.

*----------------------------------------------------------------------* Dr. Nick van Eijndhoven Department of Subatomic Physics email : nick@phys.uu.nl Utrecht University / NIKHEF tel. +31-30-2532331 (direct) P.O. Box 80.000 tel. +31-30-2531492 (secr.) NL-3508 TA Utrecht fax. +31-30-2518689 The Netherlands WWW : http://www.phys.uu.nl/~nick Office : Ornstein lab. 172 ---------------------------------------------------------------------- tel. +41-22-7679751 (direct) CERN PPE Division / ALICE exp. tel. +41-22-7675857 (secr.) CH-1211 Geneva 23 fax. +41-22-7679480 Switzerland CERN beep : 13+7294 Office : B 160 1-012 *----------------------------------------------------------------------*

--------------146511EE4577 Content-Type: message/rfc822 Content-Disposition: inline

Received: from dxmint.cern.ch (dxmint.cern.ch [137.138.26.76]) by max.phys.uu.nl (8.9.1/8.9.1/hjm) with ESMTP id PAA13687; Mon, 8 Feb 1999 15:25:24 +0100 (MET) Received: from hpsalo.cern.ch (hpsalo.cern.ch [137.138.199.59]) by dxmint.cern.ch (8.9.1a/8.9.1) with ESMTP id PAA30799; Mon, 8 Feb 1999 15:24:20 +0100 (MET) Received: (from majordom@localhost) by hpsalo.cern.ch (8.7.1/8.7.1) id JAA22684 for roottalk-outgoing; Mon, 8 Feb 1999 09:23:47 -0500 (EST) X-Authentication-Warning: hpsalo.cern.ch: majordom set sender to owner-roottalk@root.cern.ch using -f Received: from dxmint.cern.ch (dxmint.cern.ch [137.138.26.76]) by hpsalo.cern.ch with ESMTP (8.7.1/8.7.1) id PAA22680 for <roottalk@hpsalo.cern.ch>; Mon, 8 Feb 1999 15:23:45 +0100 (MET) Received: from max.phys.uu.nl (max.phys.uu.nl [131.211.32.73]) by dxmint.cern.ch (8.9.1a/8.9.1) with ESMTP id PAA30784 for <roottalk@hpsalo.cern.ch>; Mon, 8 Feb 1999 15:23:45 +0100 (MET) Received: from xyz.phys.uu.nl (fysk2.phys.uu.nl [131.211.34.39]) by max.phys.uu.nl (8.9.1/8.9.1/hjm) with SMTP id PAA11883; Mon, 8 Feb 1999 15:23:12 +0100 (MET) Message-ID: <36BEF1E2.1626@phys.uu.nl> Date: Mon, 08 Feb 1999 15:17:06 +0100 From: Nick van Eijndhoven <Nick@phys.uu.nl> Reply-To: Nick@phys.uu.nl Organization: Dept. of subatomic physics Utrecht University/NIKHEF X-Mailer: Mozilla 3.0 (Win95; I) MIME-Version: 1.0 To: Wei Xie <xiewei@clever.weizmann.ac.il> CC: roottalk@hpsalo.cern.ch Subject: Re: Why the class is declared as undefined References: <Pine.GSO.3.96-heb-2.07.990208002530.4267A-100000@clever> Content-Type: text/plain; charset=us-ascii Sender: owner-roottalk@hpsalo.cern.ch Precedence: bulk Content-Transfer-Encoding: 7bit

Wei Xie wrote: > > Dear Rooters, > > Sometimes I met following problems: > > The shared library has been successfully built without any problem. > When load it into ROOT and type '.class', ROOT says the class is > not defined but the class is actually define in the code. > > There is no any information to help to find what's going wrong in this > case. Could you remind me what could be the possible reason ? > > Sincerely yours > Xie

Hi Xie, This happened to me as well and the solution was very simple. In case you create let's say 2 shared libraries (lib1.sl and lib2.sl) but if you used in both cases the same name for the rootcint generated dictionary, you get exactly the problem you mention. Simple solution : If one creates e.g. a library lib1.sl, one should make it a rule to call the rootcint generated dict lib1dict.cxx and lib1dict.h. In this case every library you will create will have a unique dictionary name and the problems are solved.

-- 

Cheers, Nick.

*----------------------------------------------------------------------* Dr. Nick van Eijndhoven Department of Subatomic Physics email : nick@phys.uu.nl Utrecht University / NIKHEF tel. +31-30-2532331 (direct) P.O. Box 80.000 tel. +31-30-2531492 (secr.) NL-3508 TA Utrecht fax. +31-30-2518689 The Netherlands WWW : http://www.phys.uu.nl/~nick Office : Ornstein lab. 172 ---------------------------------------------------------------------- tel. +41-22-7679751 (direct) CERN PPE Division / ALICE exp. tel. +41-22-7675857 (secr.) CH-1211 Geneva 23 fax. +41-22-7679480 Switzerland CERN beep : 13+7294 Office : B 160 1-012 *----------------------------------------------------------------------*

--------------146511EE4577--