Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
2421 Discussions

Problem Debugging in Visual Studio with TBB

I hope that this hasn't been covered elsewhere and I missed it, but I can't seem to solve the following problem:

I have a clean install of MS Visual Studio with MSVC 8, and I have TBB installed and all the environment variables set up (correctly, I think).

I can compile and run the sample TBB code, along with new test code I wrote. The problem is if I try to run code in the debugger. E.g., a simple F5 on some code that works perfectly in release mode gives me the following error:

"This application has failed to start because MSVCP80.dll was not found. Re-installing the application may fix this problem."

That sounds like a MSVC error or something unrelated to TBB, but I never get the error unless I'm trying to run TBB Debug code (both directly in the debugger or started from the command line). MSVCP80.dll does indeed exist on my computer, and I even tried copying it to the execution directory for the code, and then it responds with missing another dll (I think, MSCVT80.dll, but I can't remember right now).

Any Hints?


0 Kudos
2 Replies

Mike, I guess that you might link your debug code with the release version of the TBB library (tbb.dll), and the dependencies on release VC runtime binaries you described come from tbb.dll. Can you ensure linking with the debug version (i.e. tbb_debug.dll / tbb_debug.lib) and check if it solves the issue for you?

Thanks, that was the problem. I guess I was just being dumb and didn't think about the other libraries.