Hi,
I tried to use threads.C in tutorials. And I got the following errors:
I am wondering what is wrong here. Thank you very much.
Happy holidays!
gma
Hi,
I tried to use threads.C in tutorials. And I got the following errors:
I am wondering what is wrong here. Thank you very much.
Happy holidays!
gma
Hi,
Which version are you using?
The code should look like this:
[...]
void *handle(void *ptr)
{
long nr = (long) ptr;
[...]
Cheers,
Bertrand.
Hi, Bellenot,
Thank for your answer. I think my problem is a ROOT installation problem because I got many similar errors when loading libraries.
Here is my problem: I compiled ROOT from the source and it worked fine. When I did make install, it gave me error message: NO ROOTSYS is defined. But I can see my ROOTSYS using echo $ROOTSYS and it is fine. To fix this problem, I manually copied my compiled ROOT to $ROOTSYS. I can still run ROOT, but it has the problem of loading dynamic libraries.
I am wondering what are the differences between using make install or manually install ROOT compiled codes.
Thx,
gma
Hi,
Where and how did you install ROOT? (where is $ROOTSYS pointing to?)
Do you have $ROOTSYS/lib in your $LD_LIBRARY_PATH?
see http://root.cern.ch/root/Install.html
Cheers,
Bertrand.
bellenot,
Thanks, Happy New Year!
Well, I did all the set up in installation. Somehow the generated Makefile did not pick up my env variables. So I added the definition of ROOTSYS in the Makefile, and the installation part is OK now. I still need to figure out why my Thread.C not working.
regards,
gma