Hi list,
I have a problem building oldap32.lib using MSVC++. The library is built successfully, but there seems to be something missing. When I used the library to build my ldap client, it returns me the error below during linking.
Can anybody help me to point the source of error ? I've already included openssl include files directory...
Thanks,
lara
------ Rebuild All started: Project: ldapapi, Configuration: Debug Win32 ------
Deleting intermediate files and output files for project 'ldapapi', configuration 'Debug|Win32'.
Compiling...
ldap.c
Linking...
LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _ERR_free_strings referenced in function _ldap_pvt_tls_destroy
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _EVP_cleanup referenced in function _ldap_pvt_tls_destroy
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_CTX_free referenced in function _ldap_pvt_tls_destroy
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _X509V3_add_standard_extensions referenced in function _ldap_pvt_tls_init
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_library_init referenced in function _ldap_pvt_tls_init
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_load_error_strings referenced in function _ldap_pvt_tls_init
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_CTX_set_tmp_rsa_callback referenced in function _ldap_pvt_tls_init_def_ctx
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_CTX_set_verify referenced in function _ldap_pvt_tls_init_def_ctx
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_CTX_check_private_key referenced in function _ldap_pvt_tls_init_def_ctx
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_CTX_use_certificate_file referenced in function _ldap_pvt_tls_init_def_ctx
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_CTX_use_PrivateKey_file referenced in function _ldap_pvt_tls_init_def_ctx
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_CTX_set_client_CA_list referenced in function _ldap_pvt_tls_init_def_ctx
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_CTX_set_default_verify_paths referenced in function _ldap_pvt_tls_init_def_ctx
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_CTX_load_verify_locations referenced in function _ldap_pvt_tls_init_def_ctx
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_CTX_set_cipher_list referenced in function _ldap_pvt_tls_init_def_ctx
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_CTX_set_session_id_context referenced in function _ldap_pvt_tls_init_def_ctx
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _ERR_peek_error referenced in function _ldap_pvt_tls_init_def_ctx
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_CTX_new referenced in function _ldap_pvt_tls_init_def_ctx
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSLv23_method referenced in function _ldap_pvt_tls_init_def_ctx
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _sk_free referenced in function _get_ca_list
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_add_dir_cert_subjects_to_stack referenced in function _get_ca_list
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _sk_new_null referenced in function _get_ca_list
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_load_client_CA_file referenced in function _get_ca_list
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_set_bio referenced in function _sb_tls_setup
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _BIO_new referenced in function _sb_tls_setup
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_free referenced in function _sb_tls_remove
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_shutdown referenced in function _sb_tls_close
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_pending referenced in function _sb_tls_ctrl
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_get_error referenced in function _sb_tls_read
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_read referenced in function _sb_tls_read
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_write referenced in function _sb_tls_write
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_accept referenced in function _ldap_pvt_tls_accept
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_new referenced in function _alloc_handle
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_CIPHER_get_bits referenced in function _ldap_pvt_tls_get_strength
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_get_current_cipher referenced in function _ldap_pvt_tls_get_strength
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _X509_get_subject_name referenced in function _ldap_pvt_tls_get_my_dn
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_get_certificate referenced in function _ldap_pvt_tls_get_my_dn
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _X509_free referenced in function _ldap_pvt_tls_get_peer_dn
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_get_peer_certificate referenced in function _tls_get_cert
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _ssl3_send_alert referenced in function _tls_get_cert
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_version referenced in function _tls_get_cert
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_get_verify_result referenced in function _tls_get_cert
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _X509_NAME_get_text_by_NID referenced in function _ldap_pvt_tls_get_peer_hostname
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _GENERAL_NAMES_free referenced in function _ldap_pvt_tls_check_hostname
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _ASN1_STRING_length referenced in function _ldap_pvt_tls_check_hostname
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _ASN1_STRING_data referenced in function _ldap_pvt_tls_check_hostname
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _sk_value referenced in function _ldap_pvt_tls_check_hostname
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _sk_num referenced in function _ldap_pvt_tls_check_hostname
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _X509V3_EXT_d2i referenced in function _ldap_pvt_tls_check_hostname
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _X509_get_ext referenced in function _ldap_pvt_tls_check_hostname
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _X509_get_ext_by_NID referenced in function _ldap_pvt_tls_check_hostname
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _ERR_error_string referenced in function _ldap_int_tls_connect
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_connect referenced in function _ldap_int_tls_connect
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_alert_desc_string_long referenced in function _tls_info_cb
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_alert_type_string_long referenced in function _tls_info_cb
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _SSL_state_string_long referenced in function _tls_info_cb
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _CRYPTO_free referenced in function _tls_verify_cb
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _X509_verify_cert_error_string referenced in function _tls_verify_cb
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _X509_NAME_oneline referenced in function _tls_verify_cb
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _X509_get_issuer_name referenced in function _tls_verify_cb
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _X509_STORE_CTX_get_error_depth referenced in function _tls_verify_cb
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _X509_STORE_CTX_get_error referenced in function _tls_verify_cb
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _X509_STORE_CTX_get_current_cert referenced in function _tls_verify_cb
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _ERR_error_string_n referenced in function _tls_report_error
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _ERR_get_error_line referenced in function _tls_report_error
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _RSA_generate_key referenced in function _tls_tmp_rsa_cb
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _RAND_write_file referenced in function _tls_seed_PRNG
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _RAND_status referenced in function _tls_seed_PRNG
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _RAND_load_file referenced in function _tls_seed_PRNG
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _RAND_egd referenced in function _tls_seed_PRNG
oldap32.lib(tls.obj) : error LNK2019: unresolved external symbol _RAND_file_name referenced in function _tls_seed_PRNG
oldap32.lib(getdn.obj) : error LNK2019: unresolved external symbol _OBJ_obj2txt referenced in function _ldap_X509dn2bv
oldap32.lib(getdn.obj) : error LNK2019: unresolved external symbol _OBJ_nid2sn referenced in function _ldap_X509dn2bv
oldap32.lib(getdn.obj) : error LNK2019: unresolved external symbol _OBJ_obj2nid referenced in function _ldap_X509dn2bv
oldap32.lib(getdn.obj) : error LNK2019: unresolved external symbol _X509_NAME_ENTRY_get_data referenced in function _ldap_X509dn2bv
oldap32.lib(getdn.obj) : error LNK2019: unresolved external symbol _X509_NAME_ENTRY_get_object referenced in function _ldap_X509dn2bv
oldap32.lib(getdn.obj) : error LNK2019: unresolved external symbol _X509_NAME_get_entry referenced in function _ldap_X509dn2bv
oldap32.lib(getdn.obj) : error LNK2019: unresolved external symbol _X509_NAME_entry_count referenced in function _ldap_X509dn2bv
Debug/ldapapi.exe : fatal error LNK1120: 78 unresolved externals
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com