leileicats
February 12th, 2008, 07:15 AM
Hi, everyone. I meet some problems about how to use the shared libraries of Intel Threading Build Block.
I need use the shared library called libtbb.so. so my command line as follows:
g++ tbb.cxx -o tbb -L../lib -ltbb
After compilation, I get thetbb executable file.
However, I key in $./tbb, then it shows the eorror:
./tbb: error while loading shared libraries: libtbb.so: cannot open shared object file: No such file or directory
But the libtbb.so is in the directory ../lib. Does it mean I need explicitly give the path of shared library when I execute it? Should the path information be included during compilation?
thanks.
I need use the shared library called libtbb.so. so my command line as follows:
g++ tbb.cxx -o tbb -L../lib -ltbb
After compilation, I get thetbb executable file.
However, I key in $./tbb, then it shows the eorror:
./tbb: error while loading shared libraries: libtbb.so: cannot open shared object file: No such file or directory
But the libtbb.so is in the directory ../lib. Does it mean I need explicitly give the path of shared library when I execute it? Should the path information be included during compilation?
thanks.