Re: More problems with CINT

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Fri, 2 Apr 2010 10:07:00 +0200


Just a remark on your question and in particular the style of your question: We have never pretended that CINT is an ISO compliant C++ interpreter. CINT is fulfilling its role as interpreter for the vast majority of tasks that it is supposed to do. All CINT users know that we have a trivial, simple, C++ compatible option for CINT scripts by using
the ACLIC interface to the native compiler. To use it (as explained in the very first pages of the ROOT Users Guide) do

   root > .x myscript.C+
instead of

   root > .x myscript.C

It is our hope that in the not too distant future, we can upgrade ROOT to use the LLVM compiler and its Just In Time features as a better solution. ACLIC has been found simple to use, you do not have to rewrite your scripts into another language, you can compile your scripts directly with a native compiler providing that your script is written in valid C++. The transition to LLVM should be transparent to our users.

Rene Brun

Cedric Sodhi wrote:
> Hey John, ok I tried that and no errors, puh! But now there is a even
> stranger problem:
>
> It's AW-FULLY slow. You wouldn't believe how slow that is, did you try
> it? If run as a binary it runs at just fair speed but in root every
> getline appears to take a whole second! I'm now going to bed so I will
> not reply for a while, thanks for your help - i would certainly be
> screwed without you guys :-)
>
>
> John Idarraga wrote:
>> Hello Cedric,
>>
>> Seems to work if you do this instead
>>
>> std::deque< double > * result;
>> result = new std::deque< double >;
>>
>> I can't explain why. Can you try see if it works for you ?
>>
>> John
>>
>> On Thu, 2010-04-01 at 23:36 +0200, Cedric Sodhi wrote:
>>> Hello (again), as if I had made no progress I'm back at that very
>>> simple file parser that made me contact this mailing list for the
>>> first time but which I eventually dropped for other reasons. Again,
>>> ISO compliant code (I know, in terms of CINT that holds no relevance
>>> at all) and again an error which I dont understand, attached code,
>>> error message:
>>>
>>> Error: Can't call deque<double,allocator<double> >::deque<double >()
>>> in current scope auswertung.cpp:9:
>>> Possible candidates are...
>>> (in deque<double,allocator<double> >)
>>> *** Interpreter error recovered ***
>>
>
Received on Fri Apr 02 2010 - 10:07:06 CEST

This archive was generated by hypermail 2.2.0 : Fri Apr 02 2010 - 23:50:01 CEST