且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用CMake获取基本的Fortran文件以在Windows / MinGW上进行编译?

更新时间:2023-11-09 15:33:34

之前,我使用的是 tdm-gcc 的Windows 64位版本gfortran 。我通过 Simply Fortran 切换到 gfortran 的64位版本,现在整个 ECCODES 项目都可以使用CMake构建完成。我仍在使用MingW64 gcc 来编译C文件。

Before, I was using the tdm-gcc Windows 64-bit build of gfortran. I switched to the 64-bit build of gfortran by Simply Fortran, and now the entire ECCODES project builds to completion using CMake. I'm still using MingW64 gcc to compile the C files.

关于 John Wasilewski的提示href = https://www.physicsforums.com/threads/best-fortran-compiler-for-windows-7.465593/ rel = nofollow>物理论坛线程,他提供了有关Simply Fortran的技巧。

Hat tip to John Wasilewski on a thread of Physics Forums who gave the tip about Simply Fortran.