DLL created but no LIB

DLL created but no LIB

I've created a new Fortran DLL project. After it has compiled and linked a DLL file was created but no LIB file. I don't know what I have to do, so that the LIB file will be created.

Here my sample code:

      subroutine Source1(beta) BIND(C)
      use, intrinsic :: ISO_C_BINDING
!
      implicit none
!      
       real (C_DOUBLE), intent(inout) :: beta
!      
      return
      end

and the properties:
/OUT:"Debug\Dll1.dll" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:"c:\users\roberto\documents\visual studio 2010\Projects\test_character\Dll1\Debug\Dll1.dll.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"c:\users\roberto\documents\visual studio 2010\Projects\test_character\Dll1\Debug\Dll1.pdb" /SUBSYSTEM:WINDOWS /IMPLIB:"c:\users\roberto\documents\visual studio 2010\Projects\test_character\Dll1\Debug\Dll1.lib" /DL

2 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

You need to add:

!DEC$ ATTRIBUTES DLLEXPORT :: Source1

If you don't DLLEXPORT any names, then the linker doesn't create the library.

Steve - Intel Developer Support

发表评论

登录添加评论。还不是成员?立即加入