Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
2479 Discussions

Error when building the sub_string_finder example

amina-jarraya
Beginner
542 Views
Hello,

I'm a debutant with intel TBB. I download the version 3.0.

I try to build an example (sub_string_finder) but i have the following error :

root@amina-laptop:/home/amina/Bureau/sourcesTBB/tbb30/examples/GettingStarted/sub_string_finder# make
g++ -O2 -DNDEBUG -o sub_string_finder sub_string_finder.cpp -ltbb -lrt
/usr/bin/ld: cannot find -ltbb
collect2: ld returned 1 exit status
make: *** [release] Erreur 1

Have you an idea for this problem ? may be i forget to install something.

Thank you,
0 Kudos
1 Reply
sinaelgl
Beginner
542 Views
Hello, you have to execute "source /opt/intel/bin/compilervars.sh intel64" (you have to check if compilervars.sh is in that directory, if not replace the path in this command.
0 Kudos
Reply