VC8下编译OpenMP的问题

sncp_pluto 2006-07-27 05:59:37
很简单的一个程序:
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,但是问题依然存在。
有人遇到过这个问题吗?多谢相助。
...全文
372 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
hi110409 2006-07-31
  • 打赏
  • 举报
回复
我也业到这样的问题,你把手工加的和openmp相关的都去掉,在属性窗口的从新设置OpenMP Support 也可以手工的在manifest文件中添加
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.DebugOpenMP' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
sncp_pluto 2006-07-31
  • 打赏
  • 举报
回复
你好,问题解决了,多谢相助。
我还有的一个疑问是,这本来应该是属于重新部署VC程序的问题,为什么在开发使用的计算机上还会出现啊?

sncp_pluto 2006-07-27
  • 打赏
  • 举报
回复
问题还是没有解决。
在VS2005开发环境中,生成的manifest文件中没有出现依赖的vcomp.dll或vcompd.dll。
alextooter 2006-07-27
  • 打赏
  • 举报
回复
read this link:


http://msdn2.microsoft.com/en-us/library/ms235229.aspx

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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