خرید بک لینک

Vote count: 0

I'm trying to compile and run a small c app I built using PJSua. When I try to run the app, I get tons of error, one of which is the following:

Undefined symbols for architecture x86_64:
"_ASN1_INTEGER_get", referenced from:
  _get_cert_info in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
"_ASN1_STRING_data", referenced from:
  _get_cert_info in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
"_ASN1_STRING_length", referenced from:
  _get_cert_info in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
"_ASN1_STRING_to_UTF8", referenced from:
  _get_cert_info in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
"_BIO_ctrl", referenced from:
  _flush_write_bio in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
  _create_ssl in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
"_BIO_free", referenced from:
  _create_ssl in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
"_BIO_new", referenced from:
  _create_ssl in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
"_BIO_new_file", referenced from:
  _create_ssl in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
"_BIO_s_mem", referenced from:
  _create_ssl in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
"_BIO_write", referenced from:
  _asock_on_data_read in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
"_CRYPTO_free", referenced from:
  _get_cert_info in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
"_DH_free", referenced from:
  _create_ssl in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
"_ERR_clear_error", referenced from:
  _reset_ssl_sock_state in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
  _create_ssl in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
"_ERR_error_string_n", referenced from:
  _asock_on_coect_complete in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
"_ERR_get_error", referenced from:
  _ssl_write in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
  _asock_on_coect_complete in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
  _asock_on_data_read in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
  _pj_ssl_sock_renegotiate in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
  _do_handshake in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
  _on_handshake_complete in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
  _create_ssl in libpj-x86_64-apple-darwin14.3.0.a(ssl_sock_ossl.o)
  ...

I added the compiled lib files to the "Link Binary With Libraries" in xCode. I have:

  • libpj-x86_64-apple-darwin14.3.0.a
  • libpjlib-util-x86_64-apple-darwin14.3.0.a
  • libpjmedia-audiodev-x86_64-apple-darwin14.3.0.a
  • libpjnath-x86_64-apple-darwin14.3.0.a
  • libpjsip-ua-x86_64-apple-darwin14.3.0.a
  • libpjsip-x86_64-apple-darwin14.3.0.a
  • libpjsip-simple-x86_64-apple-darwin14.3.0.a
  • libpjsua-x86_64-apple-darwin14.3.0.a
  • AudioToolbox.framework
  • CFNetwork.framework
  • AVFoundation.framework

Am I using the wrong lib files? There were tons of file in the lib folder when I ran the configure script with the prefix that included the output folder

asked 32 secs ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 14 فروردين 1395 ساعت: 7:44

صفحه بندی