VC8下编译OpenMP的问题

wlcy1988 2007-06-19 11:26:55
很简单的一个程序:
double b[100];
double a[100];

int main()
{
#pragma omp parallel for
for (int i=1; i<100; i++)
b[i] = (a[i] + a[i-1]) / 2.0;
return 0;
}

本来只是想看看VC8关于OpenMP的支持,结果,用cl /openmp 编译之后,不能执行。
下面是错误提示:
Error: R6034
An application has made an attempt to load vcompd.dll without using a manifest.
This is an unsupported way to load Visual C++ DLLs. You need to modify your appl
ication to build with a manifest.
For more information, see the "Visual C++ Libraries as Shared Side-by-Side Assem
blies" topic in the product documentation.


这个问题如何解决?
我在编译选项中已经使用了manifest,但是问题依然存在。
有人遇到过这个问题吗?多谢相助。
...全文
325 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
michaelxuyw 2007-06-19
  • 打赏
  • 举报
回复
#include <mpi.h>

568

社区成员

发帖
与我相关
我的任务
社区描述
英特尔® 边缘计算,聚焦于边缘计算、AI、IoT等领域,为开发者提供丰富的开发资源、创新技术、解决方案与行业活动。
社区管理员
  • 英特尔技术社区
  • shere_lin
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧