Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
13 Views

static linking question

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
Highlighted
Black Belt Retired Employee
13 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
Highlighted
New Contributor I
13 Views

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

0 Kudos