Prepare the Enviroment

After successfully installing Intel® Threading Building Blocks (Intel® TBB) on your system, you need to do the following:

  • Register the environment variables to locate the necessary library and include files.
  • Find the example file directories.

If your installation was unsuccessful, install Intel TBB according to the instructions in INSTALL.txt

Register the Environment Variables

Before using Intel TBB, you must register the environment variables that are used to locate necessary library and include files as follows:

  1. Locate the configuration scripts for your operating system. The scripts are located in the bin directory.
  2. Execute the appropriate scripts or set properties for your operating system:
    • On Linux* and macOS* operating systems, from the bin directory, source the tbbvars.[c]sh script. These scripts modify the paths held by the LD_LIBRARY_PATH, DYLD_LIBRARY_PATH (macOS), and CPATH variables, and affect only your current shell.
    • On Windows* operating systems, modify your Visual Studio* project build configurations (debug, release) properties as follows:

C/C++ Properties

  • General: add an additional include directory:  "$(TBBROOT)\include"

Linker Properties

  • General: add an additional library directory (shown for Visual Studio 2012 32-bit library): $(TBBROOT)\lib\ia32\vc11
  • Input: add an additional dependency: tbb_debug.lib or tbb.lib

Find the Example File Directories

The default installation locations for the bin, doc, and examples directories used in this document are shown in the following table:


Default Directories

Linux* OS






Windows* OS with IA-32 architecture processor

C:\Program Files\IntelSWTools\compilers_and_libraries_<version>\windows\tbb\[bin|examples]

C:\Program Files\IntelSWTools\compilers_and_libraries_<version>\windows\documentation\<locale>\tbb

Windows* OS with Intel® 64 architecture processor

C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_<version>\windows\tbb\[bin|examples]

C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_<version>\windows\documentation\<locale>\tbb


  • <version> is the version of the installed product. For example: compilers_and_libraries_2016.
  • <locale> is the language version abbreviation. For example en represents English language version.

Para obtener información más completa sobre las optimizaciones del compilador, consulte nuestro Aviso de optimización.