提问人:njz 提问时间:8/15/2017 最后编辑:Vladimir F Героям славаnjz 更新时间:8/15/2017 访问量:331
Fortran 中未解析的外部符号_loadlibrarya_@4和_getprocaddress_@8
unresolved external symbol _loadlibrarya_@4 and _getprocaddress_@8 in Fortran
问:
我在访问外部DLL时遇到Fortran问题。我不熟悉 Fortran。此处显示错误。代码如下:stdcall external LoadLibraryA, GetProcAddress
Subroutine GetDLLEntryPoint (EntryPoint,ModuleName)
stdcall external LoadLibraryA, GetProcAddress !error here
integer*4 LoadLibraryA, GetProcAddress
integer*4 pl, plvalue, EntryPoint
integer *4 pm
character*100 LibraryName, ModuleName
EntryPoint=0
LibraryName = "MY.DLL"//char(0)
pl = loc(LibraryName)
plvalue = LoadLibraryA(val(pl))
if (plvalue.ne.0) then
pm = loc(ModuleName)
EntryPoint = GetProcAddress (val(plvalue), val(pm))
endif
RETURN
end
Absoft Fortran 编译器中的错误是:
error LNK2001: unresolved external symbol _loadlibrarya_@4
error LNK2001: unresolved external symbol _getprocaddress_@8
答: 暂无答案
评论