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

Is it possible to call a .dll file built by Fortran without "libifcoremd.dll" ..?

lyricx
Beginner
761 Views
When a .exe file calls a .dll file built by Fortran, must I provide
the "libifcoremd.dll" and some other .dll files (in IVF installed folder) in a search path?

That means whether I must install IVF if I use a .exe to call a .Dll file built by Fortran?
Thanks a lot!

0 Kudos
5 Replies
Jugoslav_Dujic
Valued Contributor II
761 Views
1) It depends. The default setting for a dll is to use dll version run-time library. If you change that (Project/Properties/Fortran/Libraries/Run-time library), you will get the required RTL functions embedded in the dll instead. That might cause problems if the .exe is also built using IVF and certain conditions are met (.exe and .dll share I/O unit numbers and/or do mutual allocation/deallocation of memory, so Steve discourages that), but it's fairly unlikely.

2) Even if you use dll version of RTL, it's sufficient just to copy libifcoremd.dll to the .exe's folder or somewhere in PATH to the target computer.
0 Kudos
lyricx
Beginner
761 Views
For your 2), Can I copy the .dll files required by our .exe called .dll
in our owner folder if I am planning to commercialize our software?
Is this behavior violate copyright? or we need negotiate with Intel? Thanks a lot for clarification!

0 Kudos
Jugoslav_Dujic
Valued Contributor II
761 Views
To the best of my knowledge (I'm not an Intel employee), yes, you're allowed to distribute it with your software (Release versions only, not the ones with rtd.dll or mdd.dll suffix).
0 Kudos
Steven_L_Intel1
Employee
761 Views
There is a file fredist.txt in the docs folder that lists all the redistributable files.
0 Kudos
lyricx
Beginner
761 Views
Thanks a lot for your clarifications!
0 Kudos
Reply