OpenMP在使用MinGW / gfortran在Windows 10上未找到。

huangapple go评论74阅读模式
英文:

OpenMP not found using MinGW / gfortran on Windows 10

问题

I'm using GNU Fortran 9.2.0 with all latest updates and upgrades on Windows 10. I would like to compile a code that uses OpenMP.

Trying gcc -v, I see --enable-libgomp.

Trying to compile the code with use OMP_LIB, I'm experiencing the same error like reported in this question.

Very similar questions have already been raised earlier:

As in none of these questions a viable solution was provided, I'm raising this again.

英文:

I'm using GNU Fortran 9.2.0 with all latest updates and upgrades on Windows 10. I would like to compile a code that uses OpenMP.

Trying gcc -v, I see --enable-libgomp.

Trying to compile the code with use OMP_LIB, I'm experiencing the same error like reported in this question.

Very similar questions have already been raised earlier:

As in none of these questions a viable solution was provided, I'm raising this again.

答案1

得分: 1

GCC 9.2.0已过时,当前版本是13.2.0。

尝试使用更新的MinGW-w64 GCC版本,例如从https://winlibs.com/。

英文:

GCC 9.2.0 is outdated, current version is 13.2.0.

Try with a more recent MinGW-w64 GCC build, for example from https://winlibs.com/

huangapple
  • 本文由 发表于 2023年7月31日 22:15:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/76804484.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定