Jump to content
php.lv forumi

osx 10.10.03 : NetBeans : boost : cpp-netlib


Recommended Posts

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 by ieleja
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...