Hi Margar,
You have to update your version of python to 2.4, or specify the python
path at configure step i.e :
--with-python-incdir=/afs/cern.ch/sw/lcg/external/Python/2.4.2/slc3_ia32
_gcc323/include
--with-python-libdir=/afs/cern.ch/sw/lcg/external/Python/2.4.2/slc3_ia32
_gcc323/lib
Cheers,
Bertrand.
-----Original Message-----
From: Margar Simonyan
Sent: Friday, June 16, 2006 11:33 AM
To: Bertrand Bellenot; roottalk
Subject: Re: [ROOT] TSystemDirectory with 5.11.06
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
-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 >> >>
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET