VC8下编译OpenMP的问题
很简单的一个程序:
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,但是问题依然存在。
有人遇到过这个问题吗?多谢相助。