Getting ```C:\Users\srawa\.konan\dependencies\msys...
# kotlin-native
s
Getting
Copy code
C:\Users\srawa\.konan\dependencies\msys2-mingw-w64-x86_64-clang-llvm-lld-compiler_rt-8.0.1\bin\ld: cannot find -lcurl
I installed libcurl following https://github.com/JetBrains/kotlin-native/blob/master/samples/libcurl/README.md. Not sure what the problem is.
fixed this by reinstalling mysys2 in default location.
now getting:
Copy code
Execution failed for task ':examples:echo-native:runDebugExecutableNative'.
> Process 'command 'C:\Users\srawa\Projects\kbot\examples\echo-native\build\bin\native\debugExecutable\echo-native.exe'' finished with non-zero exit value -1073741515
:(
d
Is libcurl in your PATH?
s
I have this
Copy code
curl --version
curl 7.72.0 (x86_64-pc-win32) libcurl/7.72.0 OpenSSL/1.1.1g (Schannel) zlib/1.2.11 brotli/1.0.8 zstd/1.4.5 WinIDN libssh2/1.9.0 nghttp2/1.41.0
Release-Date: 2020-08-19
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile MultiSSL NTLM SPNEGO SSL SSPI TLS-SRP Unicode UnixSockets brotli libz zstd
d
Was that in CMD?
m
From my MSYS2:
Copy code
curl --version
curl 7.72.0 (x86_64-w64-mingw32) libcurl/7.72.0 OpenSSL/1.1.1g (Schannel) zlib/1.2.11 brotli/1.0.7 zstd/1.4.5 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.41.0 Release-Date: 2020-08-19 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features: AsynchDNS brotli HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz Metalink MultiSSL NTLM PSL SPNEGO SSL SSPI TLS-SRP zstd
If program was linked against MSYS2 version of libcurl - it must run with that version in PATH, not some random version installed somewhere.
s
fixed this by installing mingw-w64-x86_64-clang