Yes, i tried,bur it does not work
if i put "DLLIMPORT" only , linking fails because symbol _TESTMETHOD is not found
if i put "DLLIMPORT, STDCALL", linking fails because symbol _testmethod is not found
method name in dll is "testmethod".
Hi,
I try to call a fortran DLL (testdll.dll) from a Fortran Exe (testexe.exe).
In my testexe Project, I added testdll.lib.
testexe does not link well . it does not find functions in testdll.dll. Error messages areabout symbol not found.
in testdll project , subroutinetesmethod is declared...
After HOURS of reserach , I managed to get rid of the second compilation error:
dfordll.lib(DFORMAIN.OBJ) : error LNK2001: unresolved external symbol __imp___fpieee_flt
I made a Copy/paste of the solution it, because there's no link on it. I found it inside a archive Zip file on HP website...
I...
Hi,
I face in my application serious size problems.
I tried to isolate the problem, but I still don't get the explanation.
Here is the VB6 part :
----------------------
Type TY_VB6_Doubles
double1 As Double
End Type
Type TY_VB6_Test
testdoubles() As TYDoubles
End Type
Public Declare Sub...
Hi, I am not sur I understand you well.
I added ( " Add File to project " ) the .lib files , and it was enough to remove the first Link Error:
FortranTestExe.obj : error LNK2001: unresolved external symbol _FORTRANTESTDLLSUB@0
For the second one :
dfordll.lib(DFORMAIN.OBJ) : error LNK2001...
Thanks !
It didn't work at first, but it was necessary to do this indeed.
I also had to add "FortranTesyDLLSub.lib" file into my "exe" project, and then it worked.
Hi,
here is my exe :
program FortranTestExe
implicit none
call FortranTestDLLSub
end program FortranTestExe
And here is my DLL:
subroutine FortranTestDLLSub
!DEC$ ATTRIBUTES DLLEXPORT::FortranTestDLLSub
print *,'Hellow World'
end subroutine FortranTestDLLSub
DLL compiliation is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.