ubuntu 16.04 codeblocks 配置 openmp

( 转载:http://www.voidcn.com/article/p-wwyflsmx-bab.html

  • 添加 openmp 编译选项
       Setings-->Compiler-->Global compiler settings-->Compiler settings --> Compiler Flags
       勾选 Enable the OpenMP extensions [-fopenmp],或者在 Other options 中添加 -fopenmp 
  • 添加 openmp 链接库
       Setings-->Compiler-->Global compiler settings-->Linker settings-->Other linker options
       添加: -lgomp -lpthread

猜你喜欢

转载自javaeye-hanlingbo.iteye.com/blog/2412468