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

Compiling using openssl-1.0.2d #65

Closed
VahidN opened this issue Dec 1, 2015 · 2 comments
Closed

Compiling using openssl-1.0.2d #65

VahidN opened this issue Dec 1, 2015 · 2 comments

Comments

@VahidN
Copy link

VahidN commented Dec 1, 2015

When I want to compile this library using openssl-1.0.2d with VS 2015, it won't compile. These are the reported errors:

Error LNK2019 unresolved external symbol __imp__CertOpenStore@20 referenced in function _capi_open_store libssh2 Error LNK2019 unresolved external symbol __imp__CertCloseStore@8 referenced in function _capi_find_key libssh2 Error LNK2019 unresolved external symbol __imp__CertEnumCertificatesInStore@8 referenced in function _capi_find_cert libssh2 Error LNK2019 unresolved external symbol __imp__CertFindCertificateInStore@24 referenced in function _capi_find_cert libssh2 Error LNK2019 unresolved external symbol __imp__CertFreeCertificateContext@4 referenced in function _capi_rsa_free libssh2 Error LNK2019 unresolved external symbol __imp__CertDuplicateCertificateContext@4 referenced in function _capi_load_ssl_client_cert libssh2 Error LNK2019 unresolved external symbol __imp__CertGetCertificateContextProperty@16 referenced in function _capi_cert_get_fname libssh2

Adding crypt32.lib to the libs list of the project, fixed the issue.

@alamaison
Copy link
Contributor

Did you use CMake to configure the project for VS2015?

On Tue, 1 Dec 2015 12:13 VahidN notifications@github.com wrote:

When I want to compile this library using openssl-1.0.2d with VS 2015, it
won't compile. These are the reported errors:

Error LNK2019 unresolved external symbol __imp__CertOpenStore@20
referenced in function _capi_open_store libssh2
Error LNK2019 unresolved external symbol __imp__CertCloseStore@8
referenced in function _capi_find_key libssh2
Error LNK2019 unresolved external symbol
__imp__CertEnumCertificatesInStore@8 referenced in function
_capi_find_cert libssh2
Error LNK2019 unresolved external symbol
__imp__CertFindCertificateInStore@24 referenced in function
_capi_find_cert libssh2
Error LNK2019 unresolved external symbol
__imp__CertFreeCertificateContext@4 referenced in function _capi_rsa_free
libssh2
Error LNK2019 unresolved external symbol
__imp__CertDuplicateCertificateContext@4 referenced in function
_capi_load_ssl_client_cert libssh2
Error LNK2019 unresolved external symbol
__imp__CertGetCertificateContextProperty@16 referenced in function
_capi_cert_get_fname libssh2

Adding crypt32.lib to the libs list of the project, fixed the issue.


Reply to this email directly or view it on GitHub
#65.

@bagder
Copy link
Member

bagder commented Feb 15, 2016

No response

@bagder bagder closed this as completed Feb 15, 2016
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

3 participants