A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-D8A07059-E829-4E3D-BD00-D8D8E567C45E
Visible to Intel only — GUID: GUID-D8A07059-E829-4E3D-BD00-D8D8E567C45E
Building an Application on macOS*
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.