I am statically linking OpenSSL libraries (on Windows) but I have around 30 linker errors, similar like this one:
libcrypto_static.lib(o_names.obj) : error LNK2001: unresolved external symbol __imp__stricmp
As recommended, I used the directives:
pragma comment(lib, "crypt32")
pragma comment(lib, "ws2_32.lib")
also linker settings:
Ignore Specific Default Libraries: libcmt.lib; msvcrt.lib;msvcrtd.lib
If I remove the msvcrtd.lib from above, I can compile. But it is not correct as the msvcrtd.lib is used for dynamic linking and I wanted to link statically. The compiler should find missing definitions in libcmtd.lib (debug version). The compilation is using the /MT flag to use static linking.
What am I missing? it seems to me, that OpenSSL static crypto library still needs MS run-time dynamic DLL.