I'm trying to run a small program which uses oneMKL. While linking at the devcloud login system
I see the following error: "/usr/bin/ld: cannot find -ltbb". I also tried to compile in the PBS script before running the program but to no avail.
The program is compiled via "dpcpp -std=c++20 -mkl -o myprog myprog.cc". Switching on verbose mode during compilation, I see that the TBB library directory is specified as needed for the linker.
Looking at the TBB directory
I see libtbb.so.2. At my home installation of the same oneAPI I also have "libtbb.so" in the corresponding directory.
Is that some error during installation of oneAPI or do I have to add an additional parameter while linking ("-tbb" does not change anything).