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