我运行在微软的Visual快递C++ 2010致命错误C1083:无法打开包含文件:“omp.h”:没有这样的文件或目录
它运行罚款的.cpp代码。之后,我添加了OpenMP语句并包含了omp.h头文件。 当我运行它,我得到以下错误:
fatal error C1083: Cannot open include file: 'omp.h': No such file or directory
有谁知道如何解决呢?
谢谢。
我运行在微软的Visual快递C++ 2010致命错误C1083:无法打开包含文件:“omp.h”:没有这样的文件或目录
它运行罚款的.cpp代码。之后,我添加了OpenMP语句并包含了omp.h头文件。 当我运行它,我得到以下错误:
fatal error C1083: Cannot open include file: 'omp.h': No such file or directory
有谁知道如何解决呢?
谢谢。
OpenMP在Visual C++ 2010 Express版中不可用。 msdn link
如果您正在使用还是老样子VS表达和OpenMP,你可以使用使用本:http://www.ssidelnikov.ru/en/2011/05/openmp-visual-studio-2010-express/
你的路径在您的项目设置添加到OpenMP的头? – dirkgently
你用/ openmp编译? – Tudor
@dirkgently - 我在代码的开头写了'#include'。我不知道如何将路径添加到属性部分中的OpenMP标头。 @Tudor - 由于我使用MS Visual C++ Express,与命令行相比,我不需要编译。我点击页面上的“编译”。 –
Benny