LoginSignup
0
1

More than 5 years have passed since last update.

NetCDF > undefined reference to `nf_enddef_' > -L指定の場所が異なる

Last updated at Posted at 2016-10-26
動作環境
Xeon E5-2620 v4 (8コア) x 2
32GB RAM
CentOS 6.8 (64bit)
openmpi-1.8.x86_64 とその-devel
mpich.x86_64 3.1-5.el6とその-devel
gcc version 4.4.7 (とgfortran)

WRF(Weather Research and Forecasting Model)に関して。

NetCDFファイルを処理するFortran90プログラムをコンパイルしていて、以下のエラーが出た。

undefined reference to `nf_enddef_'

libの場所が異なるようだ。

and so you should change

-L/home/wrf/netcdf/netcdf-4.0/lib -lnetcdf

to

-L/home/wrf/netcdf/netcdf-4.0/lib -L/home/wrf/netcdf/netcdf-4.0/fortran/.libs/ -lnetcdff -lnetcdf



以下にて解決しました。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1