OpenCV with the Intel(tm) Compiler on Windows (Patch #1855)
Description
The chages of patch #1637, which fix Intel(tm) compiler issues on linux, cause compile errors when building with the Intel(tm) compiler on windows. The Intel(tm) compiler on Windows does not provide _InterlockedExchangeAdd (note the underscore), but uses window's InterlockedExchangeAdd kernel call. In case of building with the Intel(tm) compiler on Windows, the fix causes that windows specific defines are skipped.
I am using OpenCV SVN (rev. 8226) with Intel(tm) compiler 11.1.054 [IA-32].
The following change in operations.hpp fixed the problem.
modules/core/include/opencv2/core/operations.hpp:
line 55:
#ifdef __INTEL_COMPILER // atomic increment on the Intel(tm) compiler
changed to:
#if defined __INTEL_COMPILER && !(defined WIN32 || defined _WIN32) // atomic increment on the linux version of the Intel(tm) compiler
I would like to ask you to consider the fix in the attached file (modules/core/include/opencv2/core/operations.hpp)
History
Updated by Alexander Shishkov almost 13 years ago
Thanks for the report! The patch was applied to r8236.
Updated by Alexander Shishkov almost 13 years ago
- Status changed from Open to Done