Problem with compiled program in Root V4.00/08 which works fine in ROOT V3.10/02

From: Venkatesh Kaushik <venkat_at_hepmail.uta.edu>
Date: Sun, 13 Feb 2005 20:10:04 -0600


Hi,
I prepared a demo for my students sometime back with Root V3.10/02 and the demo seems to be working fine, until I migrate the exact same program and compile it on Root V4.00/08. It compiles and links without a problem.

I have attached the tarred zipped folder that contains the demo. The folder contains
a README file for instructions on compiling/linking the programs in the folder.
Can anyone please reproduce the problem on their machine and let me know if you have an explanation? Thank you for the help in advance

Venkat.
UTA, High Energy Physics Group

/******************** With ROOT V4.00/08 on linux - problem running 
program**************/
[venkat_at_www SharedClassDEMO]$ ls
MainVector.cxx Makefile MyVector.cxx MyVector.h MyVector_LinkDef.h README
[venkat_at_www SharedClassDEMO]$ gmake
g++ -O -Wall -fPIC -Wno-deprecated -pthread
-I/data2/phys/d0/d0usr/products/root/Linux-2-4/v4_00_08b_eh/include -c
MyVector.cxx
Generating dictionary MyVectorDict.cxx... g++ -O -Wall -fPIC -Wno-deprecated -pthread
-I/data2/phys/d0/d0usr/products/root/Linux-2-4/v4_00_08b_eh/include -c
MyVectorDict.cxx
g++ -shared -O MyVector.o MyVectorDict.o -o libMyVector.so g++ -O -Wall -fPIC -Wno-deprecated -pthread
-I/data2/phys/d0/d0usr/products/root/Linux-2-4/v4_00_08b_eh/include -c
MainVector.cxx
g++ -O MainVector.o libMyVector.so
-L/data2/phys/d0/d0usr/products/root/Linux-2-4/v4_00_08b_eh/lib -lCore
-lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix
-lPhysics -pthread -lm -ldl -rdynamic \

       -o MyVector
MyVector done
[venkat_at_www SharedClassDEMO]$ ./MyVector ./MyVector: error while loading shared libraries: libMyVector.so: cannot open shared object file: No such file or directory

/******************** ***************************************/

/******************** With ROOT V3.10/02 on linux - works fine 
**************/
[venkat_at_heppc14 SharedClassDEMO]$ ./MyVector v1 : 3i + 4j
v2 : -5i + -9j
Mag(v1): 5
Mag(v2): 10.2956
[venkat_at_heppc14 SharedClassDEMO]$
/******************** ***************************************/





Received on Mon Feb 14 2005 - 03:10:15 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:05 MET