这里居然不能用markdown,附上链接吧。教程留个有需要的师弟师妹们。 https://blog.csdn.net/ZJ315296441/article/details/130723039 windows
gfortran version. --GNU Fortran (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 netcdf4 version --netCDF 4.7.3 Error message: /usr/bin/ld: /tmp/ccsekniH.o: in function `MAIN__': wavetest_real.f:(.text+0x1146d): undefined reference to `nf_open_' /usr/bin/ld: wavetest_real.f:(....
Something in the NETCDF build system must be in error. If you can capture the make with VERBOSE perhaps it will show the issue. For example, if mpiifort is given a bad argument like mpiifort -fc=gfortran is one way mpiifort can call gfortran instead of...
最后成功的编译方式如下: gfortran -o nc.exe nc.f90 //mnt/f/longbow/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a //mnt/f/longbow/Build_WRF/LIBRARIES/netcdf/lib/libnetcdf.a -I//mnt/f/longbow/Build_WRF/LIBRARIES/netcdf/include
Windows 下使用 Cygwin 搭建 gfortran 和 netcdf 开发环境 这里居然不能用markdown,附上链接吧。教程留个有需要的师弟师妹们。 https://blog.csdn.net/ZJ315296441/article/details/130723039