Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Compiler construction 如何找出我使用过的编译器_Compiler Construction_Gfortran_Netcdf - Fatal编程技术网

Compiler construction 如何找出我使用过的编译器

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编译器的版本,仅

我已经安装了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编译器的版本,仅打印编译器名称,而不打印其版本。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