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

DLL's never linked with static runtime libraries?

mkummert
Beginner
373 Views
I am creating a DLL with IVF and it seems that the compiler ignores my setting to use the static version of runtime libraries.
I set "Properties/Fortran libraries/Runtime libraries" to "Single-thread", but the dependency walker still shows dependency on libifcoremd.dll, etc.

Only if I add /libs:static to the options (manually, in "additional options") do I get the intended behavior. Isn't /libs:static supposed to be the default? Am I missing some other related setting?

I am using 8.0.044 because of the name decoration bug in 8.0.047 but both versions seem to be affected.

Thanks,

Michael
0 Kudos
1 Reply
Steven_L_Intel1
Employee
373 Views
Interesting. There seems to be a disconnect between what the IDE thinks is wanted and what the compiler driver thinks. First of all, when you build a DLL, the DLL libraries ought to be the default. I notice that if you say single-threaded, it omits the /libs switch, but the driver apparently assumes DLL libs if you're linking a DLL!
I'll report this to the engineers.
0 Kudos
Reply