Intel C++ compiler 10.0.517 + VC++ 6.0 error

Intel C++ compiler 10.0.517 + VC++ 6.0 error

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

3 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

AFAICT it looks as if you are linking with the non-threadsafe version of the C runtime. Since you are running a parallel program you must link with the thread safe version.

This MSDN article refers http://support.microsoft.com/kb/140584

HTH

/Qopenmp should specify thread-safe libraries. ICL 10 with VC++ 6 may not be a reliable combination, particularly with relatively new applications such as STM; you could ask about that on the C++ forum.

Accedere per lasciare un commento.