The Wayback Machine - https://web.archive.org/web/20210112002837/https://github.com/cpp-netlib/cpp-netlib/issues/859
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting started with g++ #859

Open
ZacDaMan opened this issue Oct 7, 2018 · 1 comment
Open

Getting started with g++ #859

ZacDaMan opened this issue Oct 7, 2018 · 1 comment

Comments

@ZacDaMan
Copy link

@ZacDaMan ZacDaMan commented Oct 7, 2018

I have been trying for the last 2 days to get cpp-netlib working and it feels like 2 steps forward, one step back. I've cloned it, successfully run all the tests, but now can't actually use it in a program as I get the following error from the line #include <boost/network/protocol/http/client.hpp>:

g++ -o test Programs/boost_test2.cpp -lboost_system -pthread -I$HOME/cpp-netlib -lcppnetlib-uri -lssl -lcrypto
In file included from /home/isaac/cpp-netlib/boost/network/protocol/http/request.hpp:10:0,
from /home/isaac/cpp-netlib/boost/network/protocol/http/client.hpp:11,
from Programs/boost_test2.cpp:8:
/home/isaac/cpp-netlib/boost/network/protocol/http/impl/request.hpp:20:10: fatal error: network/uri/uri.hpp: No such file or directory
#include <network/uri/uri.hpp>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

I just want to be able to start using it and am close to giving up from all the complications. How do I fix this issue and get to the point where I can actually start using the libraries?

@anonimal
Copy link

@anonimal anonimal commented Oct 17, 2018

In the meantime, you'll probably be more interested in using https://github.com/boostorg/beast as it is in active development. An example: https://github.com/boostorg/beast/blob/develop/example/http/client/async-ssl/http_client_async_ssl.cpp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.