参考这篇博文:http://blog.csdn.net/danny_xcz/article/details/3332251

步骤:

1.在官网下载一个CodeBlocks(带mingw的版本);

2.配置编译器,在Selected Compiler选项中选GNU GCC Compiler ;

3.填写编译参数,Compiler Setting里的Other Options中粘贴-fopenmp ;

4.填写连接参数,Link Setting里的Other Options中粘贴-lgomp -lpthread ;

5.建立并运行所参考博文所写的程序。如果运行时出现libgomp-1.dll丢失的问题而不能运行,就去在mingw文件夹中找到libgomp-1.dll这个文件,并将它复制到工程文件夹中。

相关文章:

  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
  • 2021-06-24
  • 2021-04-14
  • 2022-12-23
猜你喜欢
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2021-05-04
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案