Error when building the sub_string_finder example

Error when building the sub_string_finder example

amina-jarraya's picture

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,

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
sinaelgl's picture

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.

Login to leave a comment.