Libtclsqlite3.dll without dependencies for use in freewrap


First of all a huge thank you for making sqlcipher available! You are doing great work!

I finally managed to compile openssl and sqlcipher under MinGW on Windows7 and I get a libtclsqlite3.dll that works.

BUT it needs the following dlls:

Which I want to avoid for use in freewrap where it is best to have a single .dll containing everything we need.

Is there a way to link libtclsqlite3.dll containing all necessary routines from the above mentioned dlls?

I hope thats not a too dumb question, but with my litte compiling/linking knowhow I could not google my way to a working “single-dll”.
Thank you very much for your help!


Hi @thgr

You will want to investigate building SQLCipher where you link to a static version of OpenSSL.


Thank you very much!

I used -static on ./Configure for openssl.

And could link successfully with:

gcc -shared .libs/tclsqlite.o ./.libs/libsqlcipher.a ./libcrypto.a -static-libstdc++ -static-libgcc -lws2_32 -L/usr/local/lib -ltclstub86 -lpthread -o .libs/libtclsqlite3.dll -Wl,–enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libtclsqlite3.dll.a

Thank you for SQLCipher!