[問題] make 時出現的錯誤訊息 (gfortran)
我使用 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://www.ptt.cc/bbs/Fortran/M.1420726138.A.173.html
推
01/09 00:38, , 1F
01/09 00:38, 1F
→
01/09 00:39, , 2F
01/09 00:39, 2F
推
01/12 04:46, , 3F
01/12 04:46, 3F
推
01/21 12:51, , 4F
01/21 12:51, 4F
Fortran 近期熱門文章
PTT數位生活區 即時熱門文章