Compiler construction 如何找出我使用过的编译器
我已经安装了NetCDF“binary-NetCDF-4.0.1_gfortran_gfortran_c++.tar”。但是我不确定我使用的gfortran编译器。如何找到我使用过的编译器?运行Compiler construction 如何找出我使用过的编译器,compiler-construction,gfortran,netcdf,Compiler Construction,Gfortran,Netcdf,我已经安装了NetCDF“binary-NetCDF-4.0.1_gfortran_gfortran_c++.tar”。但是我不确定我使用的gfortran编译器。如何找到我使用过的编译器?运行gfortran-v告诉您使用的是哪个版本。从使用的netcdf 4.1开始,您可以执行以下操作: $ nc-config --all 这会产生如下结果: sumesh不要求提供当前可用的gfortran编译器的版本,但要求提供用于编译netCDF.nc-config的gfortran编译器的版本,仅
gfortran-v
告诉您使用的是哪个版本。从使用的netcdf 4.1开始,您可以执行以下操作:
$ nc-config --all
这会产生如下结果:
sumesh不要求提供当前可用的gfortran编译器的版本,但要求提供用于编译netCDF.nc-config的gfortran编译器的版本,仅打印编译器名称,而不打印其版本。sumesh已经知道netCDF库是用gfortran编译的。他要查找的信息不是由
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