我如何知道我使用的是哪个编译器

发布于 2024-08-19 04:16:40 字数 104 浏览 1 评论 0原文

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

I have installed NetCDF "binary-netcdf-4.0.1_gfortran_gfortran_c++.tar ". But I am not sure about the gfortran compiler I have used. How can I find the compiler I have used?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

葬花如无物 2024-08-26 04:16:40

运行 gfortran -v 来告诉您您拥有哪个版本。

Run gfortran -v to tell you which version you have.

怪我闹别瞎闹 2024-08-26 04:16:40

从使用 pkg-config 的 netcdf 4.1 开始,您可以执行以下操作

$ nc-config  --all

:给出类似的东西:

netCDF 4.1.1 具有以下功能: 
  --libs-> -L/opt/local/lib -lnetcdf
  --fc->打开mpif77
  --fflags-> -O2 -m32 -I/opt/local/include
  --flibs-> -L/opt/local/lib -lnetcdff -lnetcdf
  --has-f77 -->是的
  --has-f90 -->是的

Starting from netcdf 4.1, which uses pkg-config, you can do this:

$ nc-config  --all

This gives something like:

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文