Re: TSystemDirectory with 5.11.06

From: Margar Simonyan <Margar.Simonyan_at_cern.ch>
Date: Fri, 16 Jun 2006 11:32:39 +0200


Hello Bertrand

I took source from CVS and tried in build under SLC3. In the bash I run

./configure
make

compilation fails in TPythion, please see bellow. Any idea ?

regards,
Margar

g++ -O -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -I/usr/include/python2.2 -o pyroot/src/TPyReturn.o -c pyroot/src/TPyReturn.cxx
bin/rmkdepend -R -fpyroot/src/TPyROOTApplication.d -Y -w 1000 -- -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -I/usr/include/python2.2 -D__cplusplus -- pyroot/src/TPyROOTApplication.cxx g++ -O -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -I/usr/include/python2.2 -o pyroot/src/TPyROOTApplication.o -c pyroot/src/TPyROOTApplication.cxx
bin/rmkdepend -R -fpyroot/src/TPython.d -Y -w 1000 -- -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -I/usr/include/python2.2 -D__cplusplus -- pyroot/src/TPython.cxx
g++ -O -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -I/usr/include/python2.2 -o pyroot/src/TPython.o -c pyroot/src/TPython.cxx pyroot/src/TPython.cxx: In static member function `static void

    TPython::ExecScript(const char*, int, const char**)': pyroot/src/TPython.cxx:229: invalid conversion from `const char*' to `char*' make: *** [pyroot/src/TPython.o] Error 1 rm utils/src/RStl_tmp.cxx utils/src/rootcint_tmp.cxx

Bertrand Bellenot wrote:
> Hi Margar,
>
> This has been fixed in CVS. Thanks for reporting the problem.
>
> Cheers,
> Bertrand.
>
> -----Original Message-----
> From: owner-roottalk_at_pcroot.cern.ch
> [mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Margar Simonyan
> Sent: Thursday, June 15, 2006 4:12 PM
> To: Rene Brun
> Cc: roottalk
> Subject: Re: [ROOT] TSystemDirectory with 5.11.06
>
> The attached script works with both versions but gives different
> results.
> It seems that in 5.11.06 SetDirectory method does not behave in the same
> way as it was in 4.04.02.
> Probably it does not change the directory.
> I would like to change the directory and get list of files it
> contains.
>
> I don't use IsDirectory method.
>
> regards,
> Margar
>
> Rene Brun wrote:
>
>

>>We need more information from your side, with a short running example 
>>if possible.
>>Just in case, you wre calling TSystemDirectory::IsDirectory, you 
>>should call now TSystemDirectory::IsItDirectory
>>
>>Rene Brun
>>
>>Margar SIMONYAN wrote:
>>
>>
>>>Hello
>>>
>>>my code was working normally with ROOT version 4.04.02. After 
>>>changing to    5.11.06 it does not. The problem comes from the 
>>>TSystemDirecory class. One of my classes has TSystemdirectory object 
>>>as a data member. Using SetDirectory method I change to different 
>>>directories and get list of files.
>>>
>>>Could you say what have been changed or how my code should be 
>>>modified in order to work with 5.11.06 version.
>>>
>>>Best regards,
>>>               Margar
>>
>>

>
Received on Fri Jun 16 2006 - 11:33:35 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET