Building an Application on Windows* OS
Building from a Microsoft Visual Studio* Command Prompt
Support for Microsoft* Visual Studio* 2017 is deprecated as of the Intel® oneAPI 2022.1 release, and will be removed in a future release.
After you open a Microsoft Visual Studio* command prompt and set up the proper paths for using the
Intel® oneAPI Threading Building Blocks
(oneTBB
) library, use the following command line to build a Release executable for a running example:
cl /EHsc /DTBB_USE_THREADING_TOOLS example.cpp tbb.lib
This command defines the required macro and link the application against the appropriate
tbb
library, based on the
oneTBB
version you use.
Building from a Microsoft Visual Studio* IDE
To build a Release configuration of your application within a Microsoft Visual Studio* IDE, you must change your project to define the
TBB_PREVIEW_FLOW_GRAPH_TRACE/TBB_USE_THREADING_TOOLS
macro and link against the
tbb_preview.lib/tbb.lib
, as shown below for the Microsoft Visual Studio* 2015 IDE based on the
oneTBB
version you use.
- Open theProject Propertiesdialog box, and select . In theAdditional Optionstextbox, enter/DTBB_USE_THREADING_TOOLS.
- Select.
- In theAdditional Dependenciesfield:
- For a Release build: Entertbb.lib.
- For a Debug build: Entertbb_debug.lib.