flamandier
Programmer
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 and exported as :
subroutine testmethod
!DEC$ ATTRIBUTES DLLEXPORT,STDCALL::testmethod
in testexe project ,test method is imported as
!DEC$ ATTRIBUTES DLLIMPORT::testmethod
If I remove STDCALL in the testdll project, everythings links fine. Problems i that I can't do this, as STDCALL is needded (DLL is used by other projects)
How should I link my testexe.exe file in ordre to use the test.dll, without removing STDCALL attribute ?
I've tried a lot of things, and nothing works.
thanks for help
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 and exported as :
subroutine testmethod
!DEC$ ATTRIBUTES DLLEXPORT,STDCALL::testmethod
in testexe project ,test method is imported as
!DEC$ ATTRIBUTES DLLIMPORT::testmethod
If I remove STDCALL in the testdll project, everythings links fine. Problems i that I can't do this, as STDCALL is needded (DLL is used by other projects)
How should I link my testexe.exe file in ordre to use the test.dll, without removing STDCALL attribute ?
I've tried a lot of things, and nothing works.
thanks for help