- 积分
- 2040
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-6-20
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 uranuscc 于 2012-5-1 00:38 编辑
我需要用fortran读取grib数据,在某论坛我看到了提示可用欧洲中心的GRIB_API包来实现,但是当我下载按说明安装好后,在编译读数据程序时有以下错误:
[uranus@uranus test]$ gfortran test_grib.f90 -L /usr/local/grib_api_dir/lib/ -lgrib_api -lgrib_api_f77 -lgrib_api_f90 -I /usr/local/grib_api_dir/include/
/usr/local/grib_api_dir/lib//libgrib_api_f90.a(grib_fortran.o): In function `_grib_f_keys_iterator_new_':
/home/uranus/uranus/compile/grib_api-1.9.9/fortran/grib_fortran.c:980: undefined reference to `grib_keys_iterator_new'
/usr/local/grib_api_dir/lib//libgrib_api_f90.a(grib_fortran.o): In function `_grib_f_iterator_new_':
/home/uranus/uranus/compile/grib_api-1.9.9/fortran/grib_fortran.c:921: undefined reference to `grib_iterator_new'
/usr/local/grib_api_dir/lib//libgrib_api_f90.a(grib_fortran.o): In function `grib_f_read_any_headers_only_from_file_':
/home/uranus/uranus/compile/grib_api-1.9.9/fortran/grib_fortran.c:716: undefined reference to `grib_context_get_default'
/home/uranus/uranus/compile/grib_api-1.9.9/fortran/grib_fortran.c:717: undefined reference to `grib_read_any_headers_only_from_file'
/usr/local/grib_api_dir/lib//libgrib_api_f90.a(grib_fortran.o): In function `grib_f_read_any_from_file_':
/home/uranus/uranus/compile/grib_api-1.9.9/fortran/grib_fortran.c:738: undefined reference to `grib_context_get_default'
/home/uranus/uranus/compile/grib_api-1.9.9/fortran/grib_fortran.c:739: undefined reference to `grib_read_any_from_file'
/usr/local/grib_api_dir/lib//libgrib_api_f90.a(grib_fortran.o): In function `grib_f_write_file_':
.......
因为官网站说intel_fortran 没有通过
安装API的时候用的 FC=gfortran ./configure --prefix=/usr/local/grib_api_dir --disable-jpeg
make
make install
make check
安装步骤没有报错
但是要编译test.f90时就报以上的错
希望有人能帮我解答一下
|
|