osx - Poco C++ Static Library (Crypto and SSL) Linker Error on OS-X -
i have compiled poco static library used in xcode6.1.1 project. see linking error libraries: libpococrypto.a , libpoconetssl.a:
i have verified these libraries built x86_64 architecture:
input file libpococrypto.a not fat file non-fat file: libpococrypto.a architecture: x86_64
what wrong? appreciable?
linker error:
undefined symbols architecture x86_64: "_asn1_string_data", referenced from: poco::crypto::x509certificate::extractnames(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&) const in libpococryptod.a(x509certificate.o) "_asn1_string_length", referenced from: poco::crypto::x509certificate::extractnames(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&) const in libpococryptod.a(x509certificate.o) "_bio_ctrl", referenced from: poco::crypto::x509certificate::load(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libpococryptod.a(x509certificate.o) poco::crypto::x509certificate::save(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const in libpococryptod.a(x509certificate.o) poco::crypto::x509certificate::save(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in libpococryptod.a(x509certificate.o) "_bio_free", referenced from: poco::net::securesocketimpl::acceptssl() in libpoconetssld.a(securesocketimpl.o) poco::net::securesocketimpl::connectssl(bool) in libpoconetssld.a(securesocketimpl.o) poco::crypto::x509certificate::load(std::__1::basic_istream<char, std::__1::char_traits<char> >&) in libpococryptod.a(x509certificate.o) poco::crypto::x509certificate::load(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libpococryptod.a(x509certificate.o) poco::crypto::x509certificate::save(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const in libpococryptod.a(x509certificate.o) poco::crypto::x509certificate::save(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in libpococryptod.a(x509certificate.o) "_bio_int_ctrl", referenced from: poco::net::securesocketimpl::acceptssl() in libpoconetssld.a(securesocketimpl.o) poco::net::securesocketimpl::connectssl(bool) in libpoconetssld.a(securesocketimpl.o) "_bio_new", referenced from: poco::net::securesocketimpl::acceptssl() in libpoconetssld.a(securesocketimpl.o) poco::net::securesocketimpl::connectssl(bool) in libpoconetssld.a(securesocketimpl.o) poco::crypto::x509certificate::load(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libpococryptod.a(x509certificate.o) poco::crypto::x509certificate::save(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const in libpococryptod.a(x509certificate.o) poco::crypto::x509certificate::save(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in libpococryptod.a(x509certificate.o) "_bio_new_mem_buf", referenced from: poco::crypto::x509certificate::load(std::__1::basic_istream<char, std::__1::char_traits<char> >&) in libpococryptod.a(x509certificate.o) "_bio_s_file", referenced from: poco::crypto::x509certificate::load(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libpococryptod.a(x509certificate.o) "_ssl_ctx_use_privatekey_file", referenced from: poco::net::context::context(poco::net::context::usage, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, poco::net::context::verificationmode, int, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libpoconetssld.a(context.o)