2012-06-02 410 views
2

我运行在微软的Visual快递C++ 2010致命错误C1083:无法打开包含文件:“omp.h”:没有这样的文件或目录

它运行罚款的.cpp代码。之后,我添加了OpenMP语句并包含了omp.h头文件。 当我运行它,我得到以下错误:

fatal error C1083: Cannot open include file: 'omp.h': No such file or directory

有谁知道如何解决呢?

谢谢。

+0

你的路径在您的项目设置添加到OpenMP的头? – dirkgently

+0

你用/ openmp编译? – Tudor

+0

@dirkgently - 我在代码的开头写了'#include '。我不知道如何将路径添加到属性部分中的OpenMP标头。 @Tudor - 由于我使用MS Visual C++ Express,与命令行相比,我不需要编译。我点击页面上的“编译”。 – Benny

回答

1

OpenMP在Visual C++ 2010 Express版中不可用。 msdn link

相关问题