Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
2455 Discussions

Problem Debugging in Visual Studio with TBB

mikedeskevich
Beginner
335 Views
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?

Thanks,
Mike


0 Kudos
2 Replies
Alexey-Kukanov
Employee
335 Views

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?

0 Kudos
mikedeskevich
Beginner
335 Views
Thanks, that was the problem. I guess I was just being dumb and didn't think about the other libraries.
0 Kudos
Reply