Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner

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

You don't "embed a DLL". You

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.

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos
Highlighted
Beginner

Ok thanks, Steve.  I'll see

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

0 Kudos