[ROOT] RE:

From: Philippe Canal (pcanal@fnal.gov)
Date: Tue Sep 17 2002 - 08:58:04 MEST


Hi Timur,

You forgot to mention which version of ROOT you tried this one.

Anyway, by the look of it, you did not generate and/or link against the
dictionary file.  To generate the dictionary file you will need to use the
'rootcint' utility.  See the related chapters in the ROOT Users' Guide.

Cheers,
Philippe

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On
Behalf Of Timur Pocheptsoff
Sent: Tuesday, September 17, 2002 12:56 AM
To: roottalk@cern.ch
Subject:


Just a foolish primitive programm:
#include <TObject.h>

class Test:public TObject{
public:
	ClassDef(Test,1)
}

//ClassImp(Test)

int main(){
	FirstTest a;

	return 0;
}

Why i have messages:

undefined reference ~Test(void)
undefined reference ~Test(void) ???????
and really terrifying message:

UNDEFINED REFERENCE 'TEST VIRTUAL TABLE'?

Why adding ClassImp produces new mistakes like:
undefined reference
	Test::Class_Version
	Test::DeclFileName
	Test::DeclFileLine ???
class_version is inline function added by classdef macro, but why undefined
reference?



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:10 MET