windows - unresolved external symbol _loadlibrarya_@4 and _getprocaddress_@8 in Fortran -
i have problems fortran when accessing external dll. i'm not familiar fortran. error showing here stdcall external loadlibrarya, getprocaddress
. code below:
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) pm = loc(modulename) entrypoint = getprocaddress (val(plvalue), val(pm)) endif return end
the error in absoft fortran compiler is:
error lnk2001: unresolved external symbol _loadlibrarya_@4 error lnk2001: unresolved external symbol _getprocaddress_@8
Comments
Post a Comment