Giter Club home page Giter Club logo

Comments (2)

 avatar commented on June 18, 2024

Thanks for the report, cpp-netlib 0.9.0 requires at least Boost 1.45.0
-- so it won't work with RHEL with Boost 1.41.

HTH

On Thu, Jun 2, 2011 at 6:33 AM, ilintault
[email protected]
wrote:

Hi

Thank you for developing this library.   I'm having trouble compiling the following
code with g++ (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13) - RHEL 6 with boost 1.41
However, the same code works on my OS X Machine using
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) with
boost 1.46.1

I tried both 0.9.0 and git versions.


#include <string>
#include <iostream>
#define BOOST_NETWORK_NO_LIB 1
#include "boost/network/uri.hpp"

int main()
{

std::string remote_info("sip:192.168.1.50");
boost::network::uri::uri instance(remote_info);
assert(boost::network::uri::valid(instance));

std::cout << "scheme: " << boost::network::uri::scheme(instance) << std::endl
         << "host: " << boost::network::uri::host(instance) << std::endl
         << "path: " << boost::network::uri::path(instance) << std::endl
         << "port: " << boost::network::uri::port(instance) << std::endl;

return true;
}

./cpp-netlib/boost/network/uri/detail/impl/parse_uri.ipp: In static member function static boost::fusion::extension::struct_member<boost::network::uri::detail::uri_parts_default_base, 4>::type& boost::fusion::extension::struct_member<boost::network::uri::detail::uri_parts_default_base, 4>::call(boost::network::uri::detail::uri_parts_default_base&):
./cpp-netlib/boost/network/uri/detail/impl/parse_uri.ipp:41: error: invalid initialization of reference of type boost::fusion::extension::struct_member<boost::network::uri::detail::uri_parts_default_base, 4>::type& from expression of type boost::network::uri::detail::uri_parts_default_base::string_type
./cpp-netlib/boost/network/uri/detail/impl/parse_uri.ipp: In static member function static boost::fusion::extension::struct_member<boost::network::uri::detail::uri_parts_wide_base, 4>::type& boost::fusion::extension::struct_member<boost::network::uri::detail::uri_parts_wide_base, 4>::call(boost::network::uri::detail::uri_parts_wide_base&):
./cpp-netlib/boost/network/uri/detail/impl/parse_uri.ipp:51: error: invalid initialization of reference of type boost::fusion::extension::struct_member<boost::network::uri::detail::uri_parts_wide_base, 4>::type& from expression of type boost::network::uri::detail::uri_parts_wide_base::string_type

I appreciate any help.

Reply to this email directly or view it on GitHub:
#51

Dean Michael Berris
http://about.me/deanberris

from cpp-netlib.

 avatar commented on June 18, 2024

Thanks for following up.

from cpp-netlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.