Microsoft Visual Studio* Code Examples

The solution files in the package are for Microsoft Visual Studio* 2012. Later versions of Microsoft Visual Studio can convert them.

To run a solution file in <examples_dir>\*\*\msvs\ directory:

  1. Start Microsoft Visual Studio*.

  2. Open a solution file in the msvs directory.

  3. In Microsoft Visual Studio*, press Ctrl-F5 to compile and run the example. Use Ctrl-F5, not Shift-F5, so that you can inspect the console window after the example finishes.

The Microsoft Visual Studio* solution files for the examples require that an environment variable specify where the library is installed. The installer sets this variable.

The makefiles for the examples require that INCLUDE, LIB, and PATH variables are set as indicated in the Windows* OS topic. You can set these variables in the following way:

  • Go to <install_dir>\bin\ directory and run the batch file tbbvars.bat.

For more complete information about compiler optimizations, see our Optimization Notice.