Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

DLL created but no LIB

Roberto_S_1
Beginner
490 Views

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

0 Kudos
1 Reply
Steven_L_Intel1
Employee
490 Views
You need to add: !DEC$ ATTRIBUTES DLLEXPORT :: Source1 If you don't DLLEXPORT any names, then the linker doesn't create the library.
0 Kudos
Reply