Re: Re: Re: Re: About the STL Container and TTree

From: <yczhang_at_ihep.ac.cn>
Date: Fri, 15 Jan 2010 00:35:11 +0800


  Brett, I notice the problem because I did not know how to use the load.C which load Cintex and enable its autoloading-of-reflex-dicts feature.
  There is two problem :
  1>. If I want to generate a *.exe to execute the job. That means that I must use .x load.C before I execute the *.exe, but how can I execute a *.exe after "root -l" and ".x load.C" ?   2>. So I follow your "Level I" to do the job, I did not generate a *.exe. I have changed the main(). Now it has the same name with the .cc file. So I can use "root -l" , then use ".L load.C", and then ".L deqvectree.cc" and "deqvectree.cc()". This time the execution does not break, but there is still error:

   Error: Can't call vector<deque<double> >::push_back((*dqv)[index]) in current scope src/deqvectree.cc:70:    Possible candidates are...
   (in vector<deque<double> >)
   {CINTEX dictionary translator} -1:-1 0 public: void vector<deque<double> >::push_back(const deque<double>& __x);    Acutally, *dqv is a vector<deque<double> > , so I think that (*dqv)[index] is a deque<double>. And I can use the codes in ACLiC So I get confused with the error. Is ACLiC different with the Reflex?

   I failed to use the patch, I guess that because before your sending me the patch, I have changed the package.    So, Brett, can you commit your changed codes to SVN, so I can check out the package to try again.

Thanks for help!
YiChun.Zhang

> -----原始邮件-----
> 发件人: "Brett Viren" <bv_at_bnl.gov>
> 发送时间: 2010年1月14日 星期四
> 收件人: yczhang_at_ihep.ac.cn
> 抄送: "Sebastien Binet" <binet_at_cern.ch>
> 主题: Re: [ROOT] Re: Re: About the STL Container and TTree
>
> Sebastien Binet <binet_at_cern.ch> writes:
>
> > sounds like you forgot to load Cintex and enable its autoloading-of-reflex-
> > dicts feature:
>
> Yes, this is what is wrong. YiChun, note I had to fix a few other parts
> of your package. The patch I sent you yesterday should make things right.
>
> -Brett.
Received on Thu Jan 14 2010 - 17:36:31 CET

This archive was generated by hypermail 2.2.0 : Thu Jan 14 2010 - 23:50:01 CET