我知道VC2010 Express Edition不包含OpenMP支持,因此会报告缺少omp.h文件.因此,我已经在Windows中安装了Windows SDK v7.1 64位版本.但是,即使我跑了:
I am aware that VC2010 Express Edition does not include OpenMP support and therefore would report omp.h file missing. Therefore, I have installed Windows SDK v7.1 64-bit version in Windows. However, even I ran:
set DISTUTIL_USE_SDK=1 setenv /x64 /release然后尝试编译代码,它仍然会报告找不到omp.h.有人可以给我提示如何解决这个问题吗?
And then try to compile the code, it would still report cannot find omp.h. Could anyone give me a hint on how to solve this?
推荐答案进行了一些检查,看来OpenMP并不是Windows SDK的一部分,并且仅随Visual C ++ 2010一起提供. /openmp/wp/openmp-compilers/"rel =" nofollow>专业版或旗舰版.
Did some checking, and it appears that OpenMP is not part of the Windows SDK, and is only shipped with Visual C++ 2010 Professional or Ultimate editions.
更多推荐
将OpenMP与Windows SDK一起使用
发布评论