Matlab Compiler tbb.dll errors

Even with a fresh install of Windows 7 x64 and Matlab R2013b, I was getting tbb.dll related errors after compiling M-scripts using Matlab Compiler deploytool. The exe would compile, but upon running it would issue various tbb.dll errors.

This problem happened across multiple PCs. To fix this problem, I followed this process:

  1. download latest Intel Threaded Building Blocks
  2. extract to c:/tbb
  3. install Intel TBB by starting Command Prompt with Run As Administrator, then type

    cd c:/tbb/tbb*bin tbbvars intel64 all
  4. recompile with Matlab deploytool