Hi Jayoung,
Only C posix functions are callable from the interpreter.
For all other functions, you must run rootcint to generate
a dictionary. See for example:
http://root.cern.ch/root/HowtoCERNLIB.html
Rene Brun
On Thu, 16 May 2002, Jayoung Wu wrote:
> Hi.
>
> To iterate a script, test.C for each file I did
> 1. Link each input file
> > ln -s file1 InROOTFile
> 2. Run test.C for InROOTFile
>
> In test.C I need to get a linked filename, "file1" instead of "InROOTFile".
>
> Somehow CINT/ROOT C/C++ Interpreter does not recognize "readlink"
> while regular C program without ROOT works fine with it.
> For example, the following code works fine:
>
> #include <unistd.h>
> #include <stdio.h>
>
> char buf[1024];
>
> main(){
> readlink("InROOTFile",buf,1023);
> printf("%s\n", buf);
> }
>
> OUTPUT:
> file1
>
>
> However I tried it in root it does not work:
> root [0] char buf[1024];
> root [1] readlink("InROOTFile",buf,1023);
> Error: No symbol readlink("InROOTFile",buf,1023) in current scope
> FILE:/tmp/file8RiwVi_cint LINE:1
> Possible candidates are...
> filename line:size busy function type and name
> *** Interpreter error recovered ***
>
> Do you have any idea?
>
> ---
> Thanks,
> Jayoung
>
>
>
>
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:53 MET