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

static linking question

Brian_Murphy
New Contributor II
204 Views

I have a console program CONSOLE.EXE that calls routines in A.DLL, and A.DLL calls routines in B.DLL.  I would like to eliminate the need to distribute B.DLL by embedding into A.DLL.  How is that done?  And if I want to embed A.DLL into CONSOLE.EXE how is that done?

Thanks,

Brian M.

0 Kudos
2 Replies
Steve_Lionel
Honored Contributor III
204 Views

You don't "embed a DLL". You build a static library instead of a DLL and link the executable to the static library(ies).  You can also "embed" B.DLL by building A.DLL so that it links to the B static library.

0 Kudos
Brian_Murphy
New Contributor II
204 Views

Ok thanks, Steve.  I'll see what I can do with that.

0 Kudos
Reply