flamandier
Programmer
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 fine, but Exe does not link .
I imported in the exe workspace the linked DLL file, with a simpl " add files on project" (I don't know if I should do this..)
Here is the message :
ompiling Fortran...
D:\Win32\DLL\FortranTestExe\FortranTestExe.f90
Linking...
FortranTestExe.obj : error LNK2001: unresolved external symbol _FORTRANTESTDLLSUB@0
dfordll.lib(DFORMAIN.OBJ) : error LNK2001: unresolved external symbol __imp___fpieee_flt
Debug/FortranTestExe.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
FortranTestExe.exe - 3 error(s), 0 warning(s)
I really don't understand how to do to so that the "Exe" knows the "DLL" ..
Could someone help me ?
thanks
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 fine, but Exe does not link .
I imported in the exe workspace the linked DLL file, with a simpl " add files on project" (I don't know if I should do this..)
Here is the message :
ompiling Fortran...
D:\Win32\DLL\FortranTestExe\FortranTestExe.f90
Linking...
FortranTestExe.obj : error LNK2001: unresolved external symbol _FORTRANTESTDLLSUB@0
dfordll.lib(DFORMAIN.OBJ) : error LNK2001: unresolved external symbol __imp___fpieee_flt
Debug/FortranTestExe.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
FortranTestExe.exe - 3 error(s), 0 warning(s)
I really don't understand how to do to so that the "Exe" knows the "DLL" ..
Could someone help me ?
thanks