Intel® Advisor Help
Use the following command line to build an executable for the running example:
clang++ -std=c++11 -DTBB_USE_THREADING_TOOLS example.cpp -ltbb
The command line define the TBB_USE_THREADING_TOOLS macro and also link the application against tbb.lib library of Intel® oneAPI Threading Building Blocks. -std=c++11 is present because the running example uses lambda expressions, which are a C++11 feature.