- 积分
- 38
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-12-8
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 stonesong 于 2015-1-1 11:57 编辑
congfigure的时候没有问题;但compile时候,出了很多错误,如下。
gfortran: error: gridinfo_module.o: 没有那个文件或目录
gfortran: error: ARWpost.o: 没有那个文件或目录
gfortran: error: input_module.o: 没有那个文件或目录
gfortran: error: output_module.o: 没有那个文件或目录
gfortran: error: v5d_module.o: 没有那个文件或目录
gfortran: error: process_domain_module.o: 没有那个文件或目录
gfortran: error: queue_module.o: 没有那个文件或目录
gfortran: error: module_get_file_names.o: 没有那个文件或目录
gfortran: error: module_interp.o: 没有那个文件或目录
gfortran: error: module_basic_arrays.o: 没有那个文件或目录
gfortran: error: module_diagnostics.o: 没有那个文件或目录
gfortran: error: module_arrays.o: 没有那个文件或目录
make: [ARWpost.exe] 错误 1 (忽略)
编译最后显示的内容!
网上也找不到这个错误的解决方法, 有没有谁知道我这是哪一步错了?
也为后来人提供一点参考资料!
后来,我解决了这个问题,为了方便大家,我把解决办法放在最前面吧!
首先要修改configure.arwp,在以下两行中添加-cpp
FFLAGS = -ffree-form -cpp -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4
F77FLAGS = -ffixed-form -cpp -O -fno-second-underscore -fconvert=big-endian
然后
将/arch/config.pl 中的-lnetcdf 替换为-lnetcdff -lnetcdf(-lhdf5_hl -lhdf5 -lz)
将/src 中的makefile的-lnetcdf 替换为-lnetcdff -lnetcdf <完>--by石头歌
|
|