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

tbb::mutex & C1001 An internal error has occurred in the compiler

chkone
Beginner
337 Views
Hello,

I develop in C++ with VS2010 - SP1. To parallelize a part of my program I use tbb, parallel_for, and other stuff included in the library.
Now I need to use a mutex to securise my program.

But just a declaration of tbb::mutex Visual C++ say me :
error C1001: An internal error has occurred in the compiler.
And if I comment this line:
tbb::mutex oMutex;
The code compile without any Error or Warning.

Have you an idea to fix this trouble?

Thanks

Regards
0 Kudos
2 Replies
Vladimir_P_1234567890
337 Views
Hello,
is it reproducible in simple case or just complex code? I haven't seen the issue before.
--Vladimir
0 Kudos
chkone
Beginner
337 Views
Indeed when I was comment my declaration of tbb::mutex the source code don't compile but when I revert and add my tbb::mutex the program compile. This an other problem not from tbb::mutex off course.

Thanks
0 Kudos
Reply