<html><body><p><tt><font size="2">> From: Michael Wojcik <Michael.Wojcik@microfocus.com></font></tt><br><tt><font size="2"><br>> Without picking at the problem files myself, not really. It's <br>> probably something that will be fairly obvious in retrospect but I'm<br>> not seeing it from here.<br>> <br>> The import libraries (I'm assuming libssl.lib is one as well, on <br>> your system) basically tell the linker "for this symbol, insert a <br>> runtime load reference to this DLL". The Cygwin nm can display the <br>> symbols in an import library; I don't remember if MingW includes nm,<br>> or know if it understands import libraries.<br>> <br>> So well-formed import versions of libcrypto.lib and libssl.lib <br>> should name all the public OpenSSL symbols, and you shouldn't get <br>> resolution errors when linking against them. You might well get <br>> resolution errors at runtime, if the corresponding DLLs can't be <br>> found; but not a link time.<br></font></tt><br><tt><font size="2">Here's a new attempt.  I added -lcrypto.  I also added -L and the path to libcrypto.lib.</font></tt><br><br><tt><font size="2">The error makes sense because -lcrypto should search for libcrypto.a, and there is none in the Shining Light build.</font></tt><br><br><tt><font size="2">I also tried pointing directly to </font></tt><tt><font size="2">"c:/program files/openssl64/lib/libcrypto.lib", but the link failed.</font></tt><br><br><tt><font size="2">~~</font></tt><br><br><tt><font size="2">"c:/program files/mingw/bin/gcc.exe" -D_MT -DTPM_WINDOWS -I.  -shared -o libibmtss.dll tssfile.o tsscryptoh.o tsscrypto.o tssprintcmd.o tss.o tssproperties.o tssmarshal.o tssauth.o tssutils.o tsssocket.o tssdev.o tsstransmit.o tssresponsecode.o tssccattributes.o tssprint.o Unmarshal.o CommandAttributeData.o tss20.o tssauth20.o Commands.o ntc2lib.o tssntc.o \</font></tt><br><tt><font size="2">                -Wl,--out-implib,libibmtss.a -L"c:/program files/openssl64/lib" -lcrypto "c:/program files/MinGW/lib/libws2_32.a"</font></tt><br><br><tt><font size="2">c:/program files/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lcrypto</font></tt><BR>
</body></html>