Making TBB a bit easier…
February 23, 2008 3 Comments
I don’t like having to manually set the various properties in order to get a TBB program to compile. So I built a Visual C++ 2005 project template that does it for me. All I have to do is click on the New Project button, select Win32 as the project type and Win32 Console Application using TBB as the template. That automatically sets the properties to use TBB and presents a top-level .cpp file that already contains the TBB include files.
You can download the installer for the TBB project template here.
By default, the project template expects that you have modified the
PATH environment variable to include the directory where the DLLs are stored:
%TBB20_INSTALL_DIR%\ia32\vc8\bin. If you want to use the method where the TBB DLLs are copied to the application directory before it is run, then you can uncomment lines 46, 51-52, 57 and 62-63 in the file default.js at C:\Program Files\Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\ApplicationTBB\scripts\1033.
If you want to know how to make or modify a VC++ project template, this is a good place to start.