__TBB_EXCEPTIONS status

Alexey Kukanov (Intel)
Total Points:
13,396
Status Points:
13,396
Black Belt
July 2, 2009 7:28 AM PDT
Rate
 
#3 Reply to #2
Quoting - Steve Nuchia
... in the 21.017 open source release the internal preprocessor symbol is off by default in Visual Studio, ia32 and em64t.
It switches on automatically in the header if compilation is being done with exception support enabled. Use /EH switch, or corresponding VS project setting.

The corresponding code in include/tbb/tbb_stddef.h should be as the following (check if it is the same in your installation):
#if defined(__EXCEPTIONS) || defined(_CPPUNWIND) || defined(__SUNPRO_CC)
#ifndef __TBB_EXCEPTIONS
#define __TBB_EXCEPTIONS 1
#endif /* __TBB_EXCEPTIONS */
#endif
_CPPUNWIND is defined by the Visual C++ compiler in case the mentioned option is set.

Intel Software Network Forums Statistics

8484 users have contributed to 31619 threads and 100691 posts to date.
In the past 24 hours, we have 34 new thread(s) 123 new posts(s), and 181 new user(s).

In the past 3 days, the most popular thread for everyone has been gemm(A,A,A) like possible? The most posts were made to gemm(A,A,A) like possible? The post with the most views is Dear Steve, excuse me for a d

Please welcome our newest member monkeybrains