作者GP03 (無言)
看板Fortran
標題[問題] DVF5.0轉換到IVF10.1的問題
時間Thu Sep 18 04:05:04 2008
原本在DF5.0可正常編譯程式碼
在IVF10.1之後編譯時就出現錯誤
其實最初的問題跟上一篇很像
以為把原本的USE MSIMSL改成 USE NUMERICAL_LIBRARIES就OK
但發現會出現以下錯誤:
Mainpg.obj : error LNK2019: 無法解析的外部符號 _DLSADS 在函式_MAIN__ 中被參考
Debug/Mainprogram.exe : fatal error LNK1120: 1 個無法解析的外部符號
原本使用IMSL函式的段落為:
WRITE(*,*)"START DLSADS--Static Rail deformation "
CALL DLSADS (NEQ3,GLKrr,NEQ3,GLFrr,Xr)
DO I=1,NEQ3
GU0r(I)=Xr(I)
END DO
WRITE(*,*)"END DLSADS--Static Rail deformation "
查了IMSL說明,將DLSADS改成LSADS
編譯時出現下列錯誤
1>F:\20080731freeformat\program-27-80\Mainpg.for(976) : Error: The type of
the actual argument differs from the type of the dummy argument. [GLKRR]
1>F:\20080731freeformat\program-27-80\Mainpg.for(976) : Error: The type of
the actual argument differs from the type of the dummy argument. [GLFRR]
1>F:\20080731freeformat\program-27-80\Mainpg.for(976) : Error: The type of
the actual argument differs from the type of the dummy argument. [XR]
請問是哪邊需要修改才能正常編譯呢
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.118.198.238
1F:推 k1942:請加入 include 'link_fnl_shared.h ' 09/18 11:11
2F:→ k1942:並再加入 USE LSADS_INT 試試吧 09/18 11:12