Sign in to follow this  
Nitage

Static from DLL

Recommended Posts

Nitage    1107
Is there a way I can take a DLL and statically compile it into my executable? I don't want to have to redistribute a paticular DLL with my project, but I don't have the source code or a static lib.

Share this post


Link to post
Share on other sites
Fruny    1658
Quote:
Is there a way I can take a DLL and statically compile it into my executable?


None that I am aware of.

Share this post


Link to post
Share on other sites
Cygon    1219
Under normal circumstances, no. A .dll has more in common with .exe files than it has with .libs, since a .lib only serves as a container for a set of .obj files produced by the compiler.

I know of a single tool which is able to convert .dlls into Visual C++ compatible .lib files, DLL to Lib. Took me quite some tries until the produced .lib files were working properly, thought.

-Markus-

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this