Intel® Advisor User Guide

ID 766448
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

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.