Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Problems getting started with cpp-netlib #124

Closed
Omerr opened this Issue · 2 comments

2 participants

@Omerr

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,
Omer.

@Omerr

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.

@glynos
Owner

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: https://groups.google.com/forum/?fromgroups#!forum/cpp-netlib

@glynos glynos closed this
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.