binance-exchange / binacpp

Binance C++ library
MIT License
212 stars 108 forks source link

链接报错一样 #28

Open freewayso opened 6 years ago

freewayso commented 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'

kev6 commented 6 years ago

Look for my answer in your previous post.