- 积分
- 6069
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-2-10
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 SonGoku 于 2020-5-29 18:24 编辑
这是终端里报错的信息
错误1
---------------------------------------------------------------------------------------------------------------------------------------------
rm -f module_NoahMP_hrldas_driver.f90
/usr/bin/cpp -P -traditional -D_GFORTRAN_ -D_HRLDAS_OFFLINE_ module_NoahMP_hrldas_driver.F > module_NoahMP_hrldas_driver.f90
/usr/bin/gfortran -o module_NoahMP_hrldas_driver.o -c -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -ffree-form -ffree-line-length-none -I -I. \
-I../phys -I../Utility_routines -I/home/gao/Build_WRF/LIBRARIES/netcdf/include module_NoahMP_hrldas_driver.f90
f951: Warning: Nonexistent include directory ‘-I.’ [-Wmissing-include-dirs]
错误2
---------------------------------------------------------------------------------------------------------------------------------------------
cio.c:31:15: warning: return type defaults to ‘int’ [-Wimplicit-int]
31 | #define copen copen_
| ^~~~~~
cio.c:72:1: note: in expansion of macro ‘copen’
72 | copen(nunit, name, mode, err, oflag)
| ^~~~~
cio.c:36:16: warning: return type defaults to ‘int’ [-Wimplicit-int]
36 | #define bnseek bnseek_
| ^~~~~~~
cio.c:148:1: note: in expansion of macro ‘bnseek’
148 | bnseek(fd, bread, mode, iprint)
| ^~~~~~
cio.c: In function ‘bnseek_’:
cio.c:179:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘off_t’ {aka ‘long int’} [-Wformat=]
179 | printf(" lseek return=%d, *mode=%d\n", i, *mode);
| ~^ ~
| | |
| int off_t {aka long int}
| %ld
cio.c: At top level:
cio.c:33:16: warning: return type defaults to ‘int’ [-Wimplicit-int]
33 | #define bnread bnread_
| ^~~~~~~
cio.c:186:1: note: in expansion of macro ‘bnread’
186 | bnread(fd, buf, nbuf, bread, ios, idiag)
| ^~~~~~
cio.c:34:16: warning: return type defaults to ‘int’ [-Wimplicit-int]
34 | #define bnwrit bnwrit_
| ^~~~~~~
cio.c:237:1: note: in expansion of macro ‘bnwrit’
237 | bnwrit(fd, buf, nbuf, bwritten, err, idiag)
| ^~~~~~
cio.c:32:16: warning: return type defaults to ‘int’ [-Wimplicit-int]
32 | #define cclose cclose_
| ^~~~~~~
cio.c:271:1: note: in expansion of macro ‘cclose’
271 | cclose(nunit, iprint, err)
| ^~~~~~
这是我的配置文件
这是我的配置文件
我的netcdf4.1.3直接用的wrf用到的(wrf是成功编译了的)
发现了一个错误,下图中画线的句子原来是错的,现在我改过来了
上面错误2解决了,第一个错误还在
再编辑一下,上面的erro不是致命的,致命错误是
error: ld returned 1 exit status
这一条
|
|