c - How do I build OpenSSL statically linked against Windows runtime? -


i'm working on c++ application windows uses openssl 1.0.1e library. i'm on visual studio 2008.

for portability reasons application statically linked against runtime libraries (/mt , /mtd options). , don't ship runtime libs application.

per openssl faq, library default linked against multithreaded dll runtime (/mdd) incompatible scenario. make program work i've added applink.c project. on dev machine , on test computers program works fine.

but unfortunately i've located computers app doesn't start. windows displays error:

the application failed initialize (0xc0150002). click on ok terminate application.  

i've opened libeay32.dll in dependency walker , see msvcr90.dll not found. trick applink.c doesn't work me.

how build openssl /mt or /mtd option?

use nt.mak makefile rather ntdll.mak makefile.

as aside, have written scripts around standard openssl build scripts make 'easier' (for me @ least) use openssl on windows mix of both x86 , x64, can them here.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -