作者paopaotw (pao)
看板Fortran
标题[问题] make 时出现的错误讯息 (gfortran)
时间Thu Jan 8 22:08:54 2015
我使用 linux, 但对它很不熟..且也不太会用 fortran
若有语焉不详之处请多包涵
我多年前有用一个 codes 计算工作需要的东西
那是用 fortran 写的
当时都可以用
不过最近在 ./configure 之後却无法 make 了(出现错误讯息)
不知道是不是更新了什麽 然後又缺了什麽东西
以下是 make 之後出现的错误讯息:
gfortran -O2 -I. -o cmb cmbflat.o cmbopen.o driver.o lensing.o subroutines.o params.o recfast.o dverk.o
cmbflat.o: In function `powersflat_':
cmbflat.F:(.text+0x4b6): undefined reference to `_gfortran_pow_r8_i4'
cmbflat.o: In function `finithermo_':
cmbflat.F:(.text+0x1928): undefined reference to `_gfortran_pow_r8_i4'
cmbflat.F:(.text+0x1d32): undefined reference to `_gfortran_pow_r8_i4'
cmbflat.F:(.text+0x2c45): undefined reference to `_gfortran_pow_r8_i4'
cmbflat.F:(.text+0x2dc4): undefined reference to `_gfortran_pow_r8_i4'
cmbflat.o:cmbflat.F:(.text+0x6bcb): more undefined references to `_gfortran_pow_r8_i4' follow
driver.o: In function `MAIN__':
driver.F:(.text+0x2f): undefined reference to `_gfortran_set_std'
driver.F:(.text+0x473): undefined reference to `_gfortran_pow_r8_i4'
driver.F:(.text+0x495): undefined reference to `_gfortran_pow_r8_i4'
lensing.o: In function `splint_v2_':
lensing.f:(.text+0x12f): undefined reference to `_gfortran_pow_r8_i4'
lensing.f:(.text+0x150): undefined reference to `_gfortran_pow_r8_i4'
lensing.o: In function `cllens_':
lensing.f:(.text+0x10e2): undefined reference to `_gfortran_pow_r8_i4'
lensing.o:lensing.f:(.text+0x1116): more undefined references to `_gfortran_pow_r8_i4' follow
collect2: ld returned 1 exit status
make: *** [cmb] Error 1
有人可以解答吗?感谢!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 140.122.161.21
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/Fortran/M.1420726138.A.173.html
1F:推 crazy10167: 可能include别的程式码时没找到要的档案 01/09 00:38
2F:→ crazy10167: 导致後面要call powersflat没东西可以call 01/09 00:39
4F:推 k9119911: -lgfortran 01/21 12:51