I wrote the c++ project which uses tbb library. To link this library to my project I set in the project settings the paths to the library's files:
Include directories: usr/tbb/include
Libraries: usr/lib/libtbb.so, usr/lib/libtbbmalloc.so, usr/lib/libtbbmalloc_proxy.so
It worked on my PC, but when I tried to run it on cluster (via qsub), I've got error that the library path is not found. So my question is: How can I specify the path to the shared library when I execute the program on cluster? I saw the discussion here and tried to run it this way
-L/home/dinar/tbb/lib/ia32 -Wl,-rpath,/home/dinar/tbb/lib/ia32 -ltbb ./program
but it did not work.