Open freewayso opened 6 years ago
-lcurl -ljsoncpp -lcrypto -lssl -lwebsockets -lbinacpp -o example /usr/bin/ld: warning: librtmp.so.0, needed by ../lib/libcurl-7.56.0/lib/libcurl.so, not found (try using -rpath or -rpath-link) ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to SSL_CTX_use_certificate_chain_file@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toSSL_CTX_set_verify@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to ASN1_STRING_type@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toCRYPTO_free@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to SSL_get_shutdown@OPENSSL_1.0.0' ../lib/libwebsockets-2.4.0/lib/libwebsockets.so: undefined reference toSSL_want@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to SSL_get_verify_result@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference tod2i_PKCS12_fp@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to UI_method_set_opener@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toEVP_cleanup@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to SSL_write@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toBIO_new@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to SSL_set_fd@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toSSL_get_privatekey@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to ldap_sasl_bind@OPENLDAP_2.4_2' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toRSA_flags@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to ldap_get_dn_ber@OPENLDAP_2.4_2' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toOCSP_resp_get0@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to BN_num_bits@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toldap_unbind_ext@OPENLDAP_2.4_2' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to BIO_puts@OPENSSL_1.0.0' ../lib/libwebsockets-2.4.0/lib/libwebsockets.so: undefined reference toEVP_sha512@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to SSL_connect@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toUI_get_input_flags@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to OCSP_single_get0_status@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toldap_get_attribute_ber@OPENLDAP_2.4_2' ../lib/libwebsockets-2.4.0/lib/libwebsockets.so: undefined reference to SSL_CTX_set_ex_data@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toDES_set_odd_parity@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to RTMP_SetBufferMS' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toOCSP_resp_count@OPENSSL_1.0.0' ../lib/libwebsockets-2.4.0/lib/libwebsockets.so: undefined reference to SSL_get_rbio@OPENSSL_1.0.0' ../lib/libwebsockets-2.4.0/lib/libwebsockets.so: undefined reference toEC_KEY_new_by_curve_name@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to RAND_egd@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toSSL_CTX_set_srp_password@OPENSSL_1.0.1' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to X509_get_pubkey@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toENGINE_init@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `SSL_set_connect_state@OPENSSL_1.0.0'
SSL_CTX_use_certificate_chain_file@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
ASN1_STRING_type@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
SSL_get_shutdown@OPENSSL_1.0.0' ../lib/libwebsockets-2.4.0/lib/libwebsockets.so: undefined reference to
SSL_get_verify_result@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
UI_method_set_opener@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
SSL_write@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
SSL_set_fd@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
ldap_sasl_bind@OPENLDAP_2.4_2' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
ldap_get_dn_ber@OPENLDAP_2.4_2' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
BN_num_bits@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
BIO_puts@OPENSSL_1.0.0' ../lib/libwebsockets-2.4.0/lib/libwebsockets.so: undefined reference to
SSL_connect@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
OCSP_single_get0_status@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
SSL_CTX_set_ex_data@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
RTMP_SetBufferMS' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
SSL_get_rbio@OPENSSL_1.0.0' ../lib/libwebsockets-2.4.0/lib/libwebsockets.so: undefined reference to
RAND_egd@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
X509_get_pubkey@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
Look for my answer in your previous post.
-lcurl -ljsoncpp -lcrypto -lssl -lwebsockets -lbinacpp -o example /usr/bin/ld: warning: librtmp.so.0, needed by ../lib/libcurl-7.56.0/lib/libcurl.so, not found (try using -rpath or -rpath-link) ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
SSL_CTX_use_certificate_chain_file@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
SSL_CTX_set_verify@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toASN1_STRING_type@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
CRYPTO_free@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toSSL_get_shutdown@OPENSSL_1.0.0' ../lib/libwebsockets-2.4.0/lib/libwebsockets.so: undefined reference to
SSL_want@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toSSL_get_verify_result@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
d2i_PKCS12_fp@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toUI_method_set_opener@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
EVP_cleanup@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toSSL_write@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
BIO_new@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toSSL_set_fd@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
SSL_get_privatekey@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toldap_sasl_bind@OPENLDAP_2.4_2' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
RSA_flags@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toldap_get_dn_ber@OPENLDAP_2.4_2' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
OCSP_resp_get0@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toBN_num_bits@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
ldap_unbind_ext@OPENLDAP_2.4_2' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toBIO_puts@OPENSSL_1.0.0' ../lib/libwebsockets-2.4.0/lib/libwebsockets.so: undefined reference to
EVP_sha512@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toSSL_connect@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
UI_get_input_flags@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toOCSP_single_get0_status@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
ldap_get_attribute_ber@OPENLDAP_2.4_2' ../lib/libwebsockets-2.4.0/lib/libwebsockets.so: undefined reference toSSL_CTX_set_ex_data@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
DES_set_odd_parity@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toRTMP_SetBufferMS' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
OCSP_resp_count@OPENSSL_1.0.0' ../lib/libwebsockets-2.4.0/lib/libwebsockets.so: undefined reference toSSL_get_rbio@OPENSSL_1.0.0' ../lib/libwebsockets-2.4.0/lib/libwebsockets.so: undefined reference to
EC_KEY_new_by_curve_name@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toRAND_egd@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
SSL_CTX_set_srp_password@OPENSSL_1.0.1' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference toX509_get_pubkey@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to
ENGINE_init@OPENSSL_1.0.0' ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `SSL_set_connect_state@OPENSSL_1.0.0'