gcc编译OpenMP

寂寞沙洲 2008-05-20 09:03:39
请教可以在Windows平台上用gcc编译OpenMP吗?怎么做?谢谢。
...全文
1252 10 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
寂寞沙洲 2008-05-24
  • 打赏
  • 举报
回复
谢谢大家的热心指点,可以用vs2005编译、运行OpenMP程序了。
总结一下解决方法,希望对其他人也有帮助:
(1)打Vs2005 sp1补丁。
(2)配置项目属性:C/C++ -> Language -> OpenMP Support -> Yes(/openmp)
(3)在源程序中:#include <omp.h>
(4)配置项目属性:
Linker -> Manifest File -> Additional Manifest Dependencies ->
type='win32' name='Microsoft.VC80.OpenMP'
version='8.0.50727.762' processorArchitecture='x86'
publicKeyToken='1fc8b3b9a1e18e3b'
寂寞沙洲 2008-05-23
  • 打赏
  • 举报
回复
我的是pro。可以编译的,运行出错。http://topic.csdn.net/u/20080518/20/cb3042d6-a426-43fc-8ce6-165631df3b86.html
intel_iclifort 2008-05-23
  • 打赏
  • 举报
回复
另外, 只有VS Pro 和 TS版本支持 OpenMP

intel_iclifort 2008-05-23
  • 打赏
  • 举报
回复
请先下载VS 2005 SP1
寂寞沙洲 2008-05-22
  • 打赏
  • 举报
回复
VS2005也支持OpenMP,但我的不行啊。http://topic.csdn.net/u/20080518/20/cb3042d6-a426-43fc-8ce6-165631df3b86.html
intel_jeff 2008-05-22
  • 打赏
  • 举报
回复
Windows上,用VS2005+Intel编译器啦
intel_jeff 2008-05-21
  • 打赏
  • 举报
回复
你想在windows上生成linux的二进制文件?
寂寞沙洲 2008-05-21
  • 打赏
  • 举报
回复
请大家指点,谢谢!
寂寞沙洲 2008-05-21
  • 打赏
  • 举报
回复
谢谢楼上的回答。如果在windows平台上做openMP开发,用哪个开发环境比较好?我装了vs2005,但不能运行openmp程序。http://topic.csdn.net/u/20080518/20/cb3042d6-a426-43fc-8ce6-165631df3b86.html
intel_iclifort 2008-05-21
  • 打赏
  • 举报
回复
建议你先在网上搜一下类似GCC for Windows的问题, 很多文章已经非常详细地讨论过了

在Windows操作系统下的gcc:
1) http://blog.csdn.net/Mobidogs/archive/2007/10/10/1819084.aspx
2) http://blog.chinaunix.net/u/27614/showart_279561.html

我再补充一点, GCC只有4.20以后的版本才支持OpenMP, 请下载并安装对应的版本

567

社区成员

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

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