Closed mattleibow closed 8 years ago
I'm not sure the root cause, but I was able to reproduce the issue and work around by adding this to the linking options, which should set the right order for the libraries.
/NODEFAULTLIB:"vccorlib" /NODEFAULTLIB:"msvcrt" vccorlib.lib msvcrt.lib
Just trying build OpenSSL as a static library. That seems to work and produces a static .lib file. I first run ms\do_vsprojects14.bat, and then just build the NT-Universal-10.0-Static-Unicode.vcxproj project from VS.
So, I went ahead and created a dummy DLL project for UWP and added a small usage in dllmain.cpp:
I added the libeay32.lib file and started the build:
I got this error:
I am not sure where exactly the issue is, but this does not happen with the Store 8.1 and Phone 8.1. Also, as I am just adding the .lib to my dummy DLL, It seems to be a dodgy .lib file? Or, do I need to do something specific. The build does seem to create the openssl.dll file fine, so it is just me and my dll.