Comments (2)
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.1I 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_typeI appreciate any help.
Reply to this email directly or view it on GitHub:
#51
Dean Michael Berris
http://about.me/deanberris
from cpp-netlib.
Thanks for following up.
from cpp-netlib.
Related Issues (20)
- Does not compile with Boost 1.70 and newer HOT 27
- Stable 0.13.0-final doesn't build on Ubuntu 18.04 HOT 1
- cpp-netlib 0.13 'cxxopts.hpp' file not found #include "cxxopts.hpp" after using submodule init and update HOT 2
- How a client post one image(cv::Mat) to a server by using cpp-netlib? HOT 1
- cpp-netlib build error HOT 1
- Prominent hello world example not up to date
- installing cpp-netlib using vcpkg gives error C1083 cannot open source/include file "boost/asio/stream_socket_service.hpp" in compiler
- Cant build cpp-netlib with boost 1.74.0 HOT 1
- Cant run project with cpp-netlib after build with vcpkg
- put this library to conan --> conan.io
- 这个库,还要继续做下去吗? HOT 4
- Could not find a package configuration file provided by "cppnetlib" (requested version 0.13.0) with any of the following names HOT 1
- boost\network\uri\uri.hpp(336,40): warning C4244: 'argument': conversion from '__int64' to 'long', possible loss of data HOT 1
- PATCH support in client?
- Build error "'get_io_service': is not a member of 'boost::asio::ip::basic_resolver<boost::asio::ip::udp,boost::asio::any_io_executor>" on boost 1.78.0
- boost\network\uri\encode.hpp(121,28): warning C4244: 'argument': conversion from 'CharT' to 'char', possible loss of data
- Confusing boost namespace HOT 1
- vcpkg with boost 1.83 HOT 2
- UserProjectAccountProblem - official download links on website broken HOT 2
- ‘class boost::asio::ip::basic_resolver<boost::asio::ip::udp> has no member named ‘get_io_service’
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpp-netlib.