Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libssh2 LINKER errors #191

Closed
jagadishthadakamalla opened this issue Jun 15, 2017 · 1 comment
Closed

Libssh2 LINKER errors #191

jagadishthadakamalla opened this issue Jun 15, 2017 · 1 comment

Comments

@jagadishthadakamalla
Copy link

Hi,

I am getting the below linker issues when i use latest libssh2 library file in my project.
Can anyone help in resolving these issues.

ibssh2.lib(channel.obj) : error LNK2001: unresolved external symbol _RAND_bytes
libssh2.lib(transport.obj) : error LNK2001: unresolved external symbol _RAND_bytes
libssh2.lib(kex.obj) : error LNK2001: unresolved external symbol _RAND_bytes
libssh2.lib(hostkey.obj) : error LNK2001: unresolved external symbol _EVP_DigestFinal
libssh2.lib(kex.obj) : error LNK2001: unresolved external symbol _EVP_DigestFinal
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_DigestFinal
libssh2.lib(hostkey.obj) : error LNK2001: unresolved external symbol _EVP_DigestUpdate
libssh2.lib(kex.obj) : error LNK2001: unresolved external symbol _EVP_DigestUpdate
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_DigestUpdate
libssh2.lib(hostkey.obj) : error LNK2001: unresolved external symbol _RSA_free
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _RSA_free
libssh2.lib(hostkey.obj) : error LNK2001: unresolved external symbol _DSA_free
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _DSA_free
libssh2.lib(global.obj) : error LNK2001: unresolved external symbol _ENGINE_register_all_complete
libssh2.lib(global.obj) : error LNK2001: unresolved external symbol _ENGINE_load_builtin_engines
libssh2.lib(global.obj) : error LNK2001: unresolved external symbol _OPENSSL_add_all_algorithms_noconf
libssh2.lib(kex.obj) : error LNK2001: unresolved external symbol _BN_clear_free
libssh2.lib(kex.obj) : error LNK2001: unresolved external symbol _BN_bin2bn
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _BN_bin2bn
libssh2.lib(kex.obj) : error LNK2001: unresolved external symbol _BN_set_word
libssh2.lib(kex.obj) : error LNK2001: unresolved external symbol _BN_new
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _BN_new
libssh2.lib(kex.obj) : error LNK2001: unresolved external symbol _BN_CTX_free
libssh2.lib(kex.obj) : error LNK2001: unresolved external symbol _BN_bn2bin
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _BN_bn2bin
libssh2.lib(kex.obj) : error LNK2001: unresolved external symbol _BN_num_bits
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _BN_num_bits
libssh2.lib(kex.obj) : error LNK2001: unresolved external symbol _BN_mod_exp
libssh2.lib(kex.obj) : error LNK2001: unresolved external symbol _BN_rand
libssh2.lib(kex.obj) : error LNK2001: unresolved external symbol _BN_CTX_new
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _RSA_new
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _RSA_verify
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _DSA_new
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _DSA_SIG_free
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _DSA_do_verify
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _DSA_SIG_new
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_CipherInit
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_CIPHER_CTX_init
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_Cipher
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_CIPHER_CTX_set_app_data
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_CIPHER_CTX_set_padding
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_EncryptInit
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_aes_128_ecb
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_aes_192_ecb
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_aes_256_ecb
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_CIPHER_CTX_key_length
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_EncryptUpdate
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_CIPHER_CTX_get_app_data
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_CIPHER_CTX_cleanup
libssh2.lib(crypt.obj) : error LNK2001: unresolved external symbol _EVP_CIPHER_CTX_cleanup
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _PEM_read_bio_RSAPrivateKey
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _BIO_free
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _BIO_new_mem_buf
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _BIO_new_file
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _PEM_read_bio_DSAPrivateKey
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _RSA_sign
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _RSA_size
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _DSA_do_sign
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_DigestInit
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_get_digestbyname
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_MD_CTX_init
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_PKEY_free
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _PEM_read_bio_PrivateKey
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _BIO_ctrl
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _OpenSSL_add_all_ciphers
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_get_cipherbyname
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_PKEY_get1_RSA
libssh2.lib(openssl.obj) : error LNK2001: unresolved external symbol _EVP_PKEY_get1_DSA
libssh2.lib(mac.obj) : error LNK2001: unresolved external symbol _HMAC_CTX_cleanup
libssh2.lib(mac.obj) : error LNK2001: unresolved external symbol _HMAC_Final
libssh2.lib(mac.obj) : error LNK2001: unresolved external symbol _HMAC_Update
libssh2.lib(mac.obj) : error LNK2001: unresolved external symbol _HMAC_Init_ex
libssh2.lib(mac.obj) : error LNK2001: unresolved external symbol _EVP_sha512
libssh2.lib(mac.obj) : error LNK2001: unresolved external symbol _HMAC_CTX_init
libssh2.lib(mac.obj) : error LNK2001: unresolved external symbol _EVP_sha256
libssh2.lib(mac.obj) : error LNK2001: unresolved external symbol _EVP_sha1
libssh2.lib(mac.obj) : error LNK2001: unresolved external symbol _EVP_md5
libssh2.lib(mac.obj) : error LNK2001: unresolved external symbol _EVP_ripemd160
libssh2.lib(crypt.obj) : error LNK2001: unresolved external symbol _EVP_des_ede3_cbc
libssh2.lib(crypt.obj) : error LNK2001: unresolved external symbol _EVP_cast5_cbc
libssh2.lib(crypt.obj) : error LNK2001: unresolved external symbol _EVP_rc4
libssh2.lib(crypt.obj) : error LNK2001: unresolved external symbol _EVP_bf_cbc
libssh2.lib(crypt.obj) : error LNK2001: unresolved external symbol _EVP_aes_256_cbc
libssh2.lib(crypt.obj) : error LNK2001: unresolved external symbol _EVP_aes_192_cbc
libssh2.lib(crypt.obj) : error LNK2001: unresolved external symbol _EVP_aes_128_cbc

@jagadishthadakamalla
Copy link
Author

I solved this issue my self.
I have added the below libraries to Project --> Settings --> Link.
libssh2.lib libeay32.lib ssleay32.lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant