ieleja Posted April 22, 2015 Report Share Posted April 22, 2015 (edited) vienvārdsakot, esmu iepinies savā līkrocībā pati 'boost' bibliotēka strādā cmake 'cpp-netlib' kompilētie piemēri un testi strādā bet primitīvs kods: #include <boost/network/protocol/http/client.hpp> #include <iostream> int main(int argc, char *argv[]) { using namespace boost::network; if (argc != 2) { std::cout << "Usage: " << argv[0] << " [url]" << std::endl; return 1; } http::client client; http::client::request request(argv[1]); request << header("Connection", "close"); http::client::response response = client.get(request); std::cout << body(response) << std::endl; return 0; } nedakompilējas/(nedalinkojas) ar stāstu par: Undefined symbols for architecture x86_64: "_SSL_CTX_ctrl", referenced from: boost::asio::ssl::context::set_options(long, boost::system::error_code&) in libcppnetlib-client-connections.a(client.cpp.o) "_SSL_CTX_free", referenced from: boost::asio::ssl::context::~context() in libcppnetlib-client-connections.a(client.cpp.o) "_SSL_CTX_get_ex_data", referenced from: boost::asio::ssl::context::~context() in libcppnetlib-client-connections.a(client.cpp.o) ... esmu pavadījis pāris dienas, saklausījies stāstus par 'g++ | gcc | clang' un 'libc | stlibc++' un vēl visu ko, bet nu to to nieku neizdodas nokompilēt ar NetBeans Edited April 22, 2015 by ieleja Quote Link to comment Share on other sites More sharing options...
enkrs Posted April 22, 2015 Report Share Posted April 22, 2015 Šāviens tumsā, bet projektā pie "Linker", "Additional options" pamēģini pielikt: -lcrypto -lssl Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.