User Guide

Contents

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

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.