RE: [ROOT] compiling a Tselector derived class

From: Philippe Canal (pcanal@fnal.gov)
Date: Fri Sep 03 2004 - 17:19:01 MEST


Hi Pietro,

The error indicate that you did not generate the dictonary
for the class dataAnalysis (See User's Guide, read about
rootcint).

Cheers,
Philippe.

Ps. A simplier solution is just to use ACLiC for the compilation
by doing:
	root [] .L dataAnalysis.C+

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Pietro Govoni
Sent: Thursday, September 02, 2004 9:57 AM
To: root mailing list
Subject: [ROOT] compiling a Tselector derived class


Dear ROOTers,

I am trying to compile the following code:

#include "dataAnalysis.h"
int main()
{}

where dataAnalysis.h is a TSelector derived class, that I created and
didn't change.

I compile it with the command:

[govoni@fly codice> c++ dataAnalysis.cpp dataAnalysis.C `root-config
--cflags --libs`
/tmp/ccMzj76K.o(.gnu.linkonce.d.__vt_12dataAnalysis+0xdc): undefined
reference to `dataAnalysis::ShowMembers(TMemberInspector &, char *)'
/tmp/ccMzj76K.o(.gnu.linkonce.d.__vt_12dataAnalysis+0xe0): undefined
reference to `dataAnalysis::Streamer(TBuffer &)'
/tmp/ccMzj76K.o: In function `dataAnalysis::IsA(void) const':
/tmp/ccMzj76K.o(.dataAnalysis::gnu.linkonce.t.IsA(void) const+0xa): undefined
reference to `dataAnalysis::Class(void)'
/tmp/ccMzj76K.o: In function `dataAnalysis::StreamerNVirtual(TBuffer &)':
/tmp/ccMzj76K.o(.dataAnalysis::gnu.linkonce.t.StreamerNVirtual(TBuffer
&)+0x12): undefined reference to `dataAnalysis::Streamer(TBuffer &)'
collect2: ld returned 1 exit status



with ROOT:

  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   4.00/08       9 July 2004   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************


I don't understand how to compile successfully.
What should I do?

Thank you very much

pietro



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET