Hi,
I am trying the compiler the following code using hte intel C++ compiler 10.0.517 - STM support using VC++ 6.0
#include
int a = 0;
int main() {
#pragma omp parallel
{
int i;
for (i=0; i<100000; i++)
__tm_atomic {
a++;
}
printf("a = %i
", a);
}
return 0;
}
I have add the following option:
/Qopenmp /Qtm_enabled /Qstd=c99
When i build the project i get following errors:
--------------------Configuration: first - Win32 Debug--------------------
Compiling...
icl icl: error #10265: Transaction memory assumes multi-threaded libraries
Error executing xicl6.exe.
first.exe - 1 error(s), 0 warning(s)
Please comment.
Thanks and Regards,
Priti



