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

Fortran DLL using command line error

bjdesa
New Contributor I
613 Views

I created this fortran DLL using command line IFORT and LIB. I used:

ifort /nologo /debug:full /Od /gen-interfaces /warn:interfaces /traceback /check:bounds /libs:dll /threads /dbglibs /c /Qvc9 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin" "D:\temp\1\Source3B.f90"


Link /OUT:"Dll1.dll" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:"D:\temp\1\Dll1\Debug\Dll1.dll.intermediate.manifest" /DEBUG /PDB:"D:\temp\1\Dll1\Debug\Dll1.pdb" /SUBSYSTEM:WINDOWS /IMPLIB:"D:\temp\1\Dll1\Debug\Dll1.lib" /DLL "Source3B.obj"

When I used the dll with my c++ main program I get a System Error saying cant start because MSVCR90D.DLL is missing.

However when I use MS VS 2008 to create my dll the main program runs perfectly could you please explain to me how I can use the command line option to create the dll so that it runs with my main program

0 Kudos
1 Reply
Kevin_D_Intel
Employee
613 Views

In three earlier similar posts the underlying issue appeared related to the manifest.

https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/282226
https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/289458
https://software.intel.com/en-us/forums/intel-moderncode-for-parallel-architectures/topic/292214

From your compile/link command-lines you posted, you are producing that (via /MANIFEST and  /MANIFESTFILE) but perhaps what is lacking is the MT step to embed that.

I recommend that you inspect the build log under VS2008 which you indicated produces a working program/DLL to ensure that you are replicating all the steps in the log for building both the DLL and the main program.

0 Kudos
Reply