A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-758492B7-AB6D-4419-BE55-83FF825CDE6B
Visible to Intel only — GUID: GUID-758492B7-AB6D-4419-BE55-83FF825CDE6B
Building an Application on Linux* OS
Use the following command line to build an executable for the running example:
icpc -std=c++11 -DTBB_USE_THREADING_TOOLS example.cpp -ltbb
These command lines define the TBB_USE_THREADING_TOOLS macro and also link the application against the tbb.lib library. -std=c++11 is present because the running example uses lambda expressions, which are a C++11 feature.
To map nodes to source code, use -g, -DTBB_PREVIEW_FLOW_GRAPH_TRACE, and -DTBB_USE_THREADING_TOOLS flags when building the application:
icpc -g -std=c++11 -DTBB_USE_THREADING_TOOLS -DTBB_PREVIEW_FLOW_GRAPH_TRACE example.cpp -ltbb_preview