While I update my OpenCV to 2.4.2, it compiles fine but while executing it gives an error saying ’tbb.dll’ not found.

After checking on internet, I get the answer. it’s part of Intel’s Threading Building Blocks library.

You can find a copy of it in your OpenCV installation in /build/common/tbb and under the platform and compiler your are using. For example, in c:\OpenCV-2.4.2\build\common\tbb\ia32\vc9.

The only thing I need to do is to add this path to my Windows System Path.