Skip to content

Problems getting started with cpp-netlib #124

Omerr opened this Issue Jun 14, 2012 · 2 comments

2 participants

Omerr commented Jun 14, 2012

Hi guys,
I just found out about cpp-netlib a few days ago and really liked it from the documentation. However I have been having issues trying to compile even the slightest bit of code with it.
I'm using VS IDE, running on Windows XP.

Basically what I tried to do first, based on this documentation was:

using namespace boost::network::uri;
http::uri bla(url);

For that I get the following error:
error C3083: 'network': the symbol to the left of a '::' must be a type

Then I saw another documentation, this one, and tried this:

using namespace boost::network;
uri::uri bla(url);

Which ended up giving the following error:
error C2039: 'network' : is not a member of 'boost'

I must admin I haven't been sure how to extract the cpp-netlib files off the tar.gz file. I tried different combinations putting them around the boost folder (as I didn't have any "include" folder beforehand and wasn't sure where to put it).
For now my includes are:
#include <iostream>
#include <boost/network/uri.hpp>

Any help would be very much appreciated.
Thank you in advance,

Omerr commented Jun 14, 2012

Oh, one more thing that I am not sure about..
Most code samples I find on the net include <boost/network/uri.hpp>
Yet that file itself refers to <network/uri/uri.hpp>, which is obviously not the same location. How should that be handled?

Thanks again.

C++ Network Library member
glynos commented Jun 15, 2012

The first link refers to 0.7 documentation which we longer support.

As for installation, you don't need to place cpp-netlib in the boost directory - all you need is boost installed somewhere on your system (at least 1.45 for cpp-netlib 0.9.4) and make sure that the environment variable BOOST_ROOT is set to the system path for boost.

And for your second comment, it seems like you're using the latest code from master, which is not currently in a stable state, and the documentation has not yet been updated to reflect the new structure. The documentation refers to the latest stable version (0.9.4).

If you have any further issue, please raise them on our mailing list:!forum/cpp-netlib

@glynos glynos closed this Jun 15, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.