2

我已经使用项目设置启用了 openMP,但是当我执行 #include 时出现错误,文件不存在。我使用的是 Visual Studio 标准版,而不是 Express……还缺少什么?我发现的每个页面都只是说在项目设置中打开它,它会起作用。

4

3 回答 3

2

omp.h 和 vcomp.lib 仅在 VS Pro 版本中可用。

于 2009-09-04T08:34:44.007 回答
0

Did you add the directory containing the file omp.h to the list of directory search paths? Go to "tools - options - projects and solutions - VC++ Directories", then "show directories for" "include files". Add the path in here.

于 2009-08-26T23:10:16.210 回答
0

Visual Studio 2008 Express 在 Windows 上开发 OpenMP的解决方案也适用于标准版。

基本上,您需要为 OpenMP 安装Windows SDK以获取库和标头。在我的情况下,我也必须安装补丁KB974479,但如果启用 VS2008 的 Microsoft 更新(我在安装 Windows 后忘记为所有 Microsoft 产品启用),则情况可能并非如此。

于 2012-04-13T10:16:03.007 回答