tags:

views:

34

answers:

1

I've got a .dll file created in VC++ 2008 that needs to be widely distributed, but also requires external resources (namely OpenSSL libraries) to operate. The dll compiles and runs perfectly well on my own system, as well as any other system with the appropriate external libraries manually installed on them, but I need for the .dll itself to contain all necessary data itself.

At present the external resources are linked via

#pragma comment(lib, "libeay32.lib")
#pragma comment(lib, "ssleay32.lib")
#pragma comment(lib, "Ws2_32.lib")

and that's not quite cutting it. Is there a way to have all of this included in the dll?

+2  A: 

Include OpenSSL DLLs with your distribution, or link your DLL with static OpenSSL libraries. From their INSTALL.W32:

...
You can also build a static version of the library using the Makefile ms\nt.mak
...
Nikolai N Fetissov
Thanks, took some doing but I managed to package the static libraries properly. Much obliged.
Ivan