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

Fortran Dll requiring NO OTHER DLLs to be distributed

john_lott
Beginner
326 Views

I would like to create a fortran dll with no dependencies. My understanding is that this would have to be a STATIC dll using the static switch. However, I am not sure where to put the switch

Is my understanding correct ?

If so where do I put the switch ?

Thanks in advance

John

0 Kudos
1 Reply
Steven_L_Intel1
Employee
326 Views
Almost. The switch you want is /libs:static and also /threads. If you are building the DLL in Visual Studio, you do not add these directly but rather go to the Fortran > Libraries property page and select the "Multithreaded" run-time library type.

/static in our Windows compiler means "set the default memory allocation of local variables to fixed locations" - not what you want. This is a common confusion for people who also use Linux compilers.
0 Kudos
Reply