Looks like a static lib vs dll lib issue. From the linker errors it
seems the linker is expecting the lib file for the dll build of
BoringSSL. You could check if your BoringSSL build is actually a dll build.
Cheers,
Thomas
Am 19.05.2020 um 18:37 schrieb Mark Windshield via curl-library:
Hello,
I'm currently trying to build libcurl with zlib, nghttp2 & BoringSSL
support for windows, but when trying to build in VC x64 cmd tool or
following albertino's guide to build it with VC-15 project I get the
following error and am not sure what to do:
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of
other libs; use /NODEFAULTLIB:library
libssl.lib(tls13_enc.cc.obj) : error LNK2001: unresolved external
symbol __imp__invalid_parameter
libssl.lib(t1_enc.cc.obj) : error LNK2001: unresolved external symbol
__imp__invalid_parameter
libssl.lib(dtls_record.cc.obj) : error LNK2001: unresolved external
symbol __imp__invalid_parameter
libssl.lib(handshake_client.cc.obj) : error LNK2001: unresolved
external symbol __imp__invalid_parameter
libssl.lib(handshake_server.cc.obj) : error LNK2001: unresolved
external symbol __imp__invalid_parameter
libssl.lib(t1_lib.cc.obj) : error LNK2001: unresolved external symbol
__imp__invalid_parameter
libssl.lib(tls_record.cc.obj) : error LNK2001: unresolved external
symbol __imp__invalid_parameter
libssl.lib(ssl_lib.cc.obj) : error LNK2001: unresolved external symbol
__imp__invalid_parameter
libssl.lib(ssl_cipher.cc.obj) : error LNK2001: unresolved external
symbol __imp__invalid_parameter
libssl.lib(ssl_aead_ctx.cc.obj) : error LNK2001: unresolved external
symbol __imp__invalid_parameter
libssl.lib(s3_both.cc.obj) : error LNK2001: unresolved external symbol
__imp__invalid_parameter
..\builds\libcurl-vc15-x64-release-dll-ssl-dll-zlib-static-sspi-nghttp2-dll-obj-lib\libcurl.dll
: fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"*\Microsoft Visual
Studio\2017\Communityx\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\link.exe"'
: return code '0x460'
Stop.
NMAKE : fatal error U1077: '"*\Microsoft Visual
Studio\2017\Communityx\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\nmake.exe"'
: return code '0x2'
Stop.
This is what I entered:
nmake /f Makefile.vc mode=dll WITH_SSL=dll Machine=x64 DEBUG=no
GEN_PDB=no WITH_NGHTTP2=dll WITH_ZLIB=static
NGHTTP2_PATH=*\curl-7.70.0\nghttp2 ZLIB_PATH=*\curl-7.70.0\zlib
SSL_PATH=*\curl-7.70.0\boringssl-build VC=15 ENABLE_IPV6=no
Does anyone have any idea what I am doing wrong here/what I need to do
different? Or does anyone know if there is a already built libcurl
with boringssl for windows somewhere out there?
Thanks in advance.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html