作者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