我有一些DLL,我想在VISUAL STUDIO的FORTRAN項目中使用,但我找不到。如何將dll鏈接到fortran(visual studio)?
這是我用來找出如何的簡單代碼。
使用Visual Studio我創建了一個DLL從這個
subroutine printing
!DEC$ ATTRIBUTES DLLEXPORT::printing
print*,"dll naimi created"
end subroutine printing
我加的DLL鏈接到項目>屬性>鏈接>常規>附加庫目錄
主程序:
program Console11
implicit none
call printing
end program Console11
錯誤:Error 1 error LNK2019: unresolved external symbol _PRINTING referenced in function _MAIN__.
other soluti與此相關的ons建議使用在生成DLL時創建的.lib,但在我的真實情況下,我只有沒有.lib的DLL。
那麼如何使用DLL ...?
Visual Studio開箱即用對Fortran沒有任何瞭解。你正在使用哪種Fortran編譯器? – IanH