2

我已经安装了 NetCDF“binary-netcdf-4.0.1_gfortran_gfortran_c++.tar”。但我不确定我使用的 gfortran 编译器。如何找到我使用的编译器?

4

2 回答 2

2

运行gfortran -v告诉你你有哪个版本。

于 2010-02-11T10:26:23.037 回答
2

从使用pkg-config的 netcdf 4.1 开始,您可以这样做:

$ nc-config  --all

这给出了类似的东西:

This netCDF 4.1.1 has been built with the following features: 
  --libs      -> -L/opt/local/lib -lnetcdf
  --fc        -> openmpif77
  --fflags    -> -O2 -m32 -I/opt/local/include
  --flibs     -> -L/opt/local/lib -lnetcdff -lnetcdf
  --has-f77   -> yes
  --has-f90   -> yes
于 2011-06-05T18:38:25.043 回答