[ROOT] compilation simple class pb

From: Sebastien Greder (greder@in2p3.fr)
Date: Mon Feb 17 2003 - 23:02:53 MET


Hello,

I'm getting confused with the code attached, I get this message :

root [0] .L hello.C+
Info in <TUnixSystem::ACLiC>: creating shared library
/home/greder/boulot/analyse/newtest/current_analyze/./hello_C.so
Error in <ACLiC>: Dictionary generation failed!
root [1]

and don't understand why it doesn't compile,

am I doing smthg wrong ?

running on Red-Hat 7.2 gcc 2.96 with ROOT version 3.04.02,

thanks,

seb.



#include "hello.h"

ClassImp(test)

const int test::pole_variaci[121][2] = {
{0,0},{-5,0},{0,-5},{0,5},{5,0},{-5,-5},{5,5},
{-10,0},{0,-10},{0,10},{10,0},{-10,-10},{10,10},
{-10,5},{5,-10},{5,10},{10,5},{-5,-10},{10,5},
{-20,0},{0,-20},{0,20},{20,0},{-20,-20},{20,20},
{-20,10},{10,-20},{10,20},{20,10},{-10,-20},{10,20},
{-30,0},{0,-30},{0,30},{30,0},{-30,-30},{30,30},
{-40,0},{0,-40},{0,40},{40,0},{-40,-40},{40,40},
{-60,0},{0,-60},{0,60},{60,0},{-60,-60},{60,60},
{-60,30},{30,-60},{30,60},{60,30},{-30,-60},{60,30},
{-80,0},{0,-80},{0,80},{80,0},{-80,-80},{80,80},
{-80,40},{40,-80},{40,80},{80,40},{-40,-80},{80,40},
{-100,0},{0,-100},{0,100},{100,0},{-100,-100},{100,100},
{-100,50},{100,-50},{50,100},{100,50},{-50,-100},{100,50},
{-120,0},{0,-120},{0,120},{120,0},{-120,-120},{120,120},
{-160,0},{0,-160},{0,160},{160,0},{-160,-160},{160,160},
{-160,80},{80,-160},{80,160},{160,80},{-80,-160},{160,80},
{-200,0},{0,-200},{0,200},{200,0},{-200,-200},{200,200},
{-200,100},{100,-200},{100,200},{200,100},{-100,-200},{200,100},
{-200,0},{0,-200},{0,200},{200,0},{-200,-200},{200,200},
{-250,0},{0,-250},{0,250},{250,0},{-250,-250},{250,250}
};

void test::print(){
for (int i = 0 ; i < 121 ; i++)
 for (int j = 0 ; j < 2 ; j++)
  cout << pole_variaci[i][j] << endl ;
}

#include <iostream>
#include "TObject.h"

class test : public TObject
{

public :

test() ;
~test() ;

const int pole_variaci[121][2] ;

void print() ;


ClassDef(test,1)
};



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET