From: Sébastien T. <me...@st...> - 2011-02-23 18:51:40
|
I am unable to build with the latest boost and netlib. Including network.hpp causes errors in boost::spirit. This is using Visual Studio 2010, x86 unicode build. #include <boost/network.hpp> int main(int argc, char** argv) { return 0; } Produces this output on compile (trimmed for message size): 1>------ Build started: Project: netlib-test, Configuration: Debug Win32 ------ 1>Build started 2/23/2011 10:35:27 AM. 1>InitializeBuildStatus: 1> Touching "Debug\netlib-test.unsuccessfulbuild". 1>ClCompile: 1> netlib-test.cpp 1>c:\libraries\boost\include\boost-1_46\boost\spirit\home\qi\nonterminal\rule.hpp(266): error C2664: 'boost::spirit::qi::transform_attribute<Exposed,Transformed>::pre' : cannot convert parameter 1 from 'boost::optional<T>' to 'boost::spirit::qi::optional<Subject> &' 1> with 1> [ 1> Exposed=boost::optional<std::basic_string<char,std::char_traits<char>,std::allocator<char>>>, 1> Transformed=std::basic_string<char,std::char_traits<char>,std::allocator<char>> 1> ] 1> and 1> [ 1> T=std::basic_string<char,std::char_traits<char>,std::allocator<char>> 1> ] 1> and 1> [ 1> Subject=std::basic_string<char,std::char_traits<char>,std::allocator<char>> 1> ] 1> c:\libraries\boost\include\boost-1_46\boost\spirit\home\qi\reference.hpp(43) : see reference to function template instantiation 'bool boost::spirit::qi::rule<Iterator,T1>::parse<Context,Skipper,Attribute>(Iterator &,const Iterator &,Context &,const Skipper &,Attribute &) const' being compiled 1> with 1> [ 1> Iterator=iterator, 1> T1=std::basic_string<char,std::char_traits<char>,std::allocator<char>> (void), 1> |
From: Dean M. B. <mik...@gm...> - 2011-02-24 04:58:02
|
Hi Sebastien, On Thu, Feb 24, 2011 at 2:40 AM, Sébastien Taylor <me...@st...> wrote: > I am unable to build with the latest boost and netlib. Including > network.hpp causes errors in boost::spirit. This is using Visual > Studio 2010, x86 unicode build. > > #include <boost/network.hpp> > int main(int argc, char** argv) { return 0; } > > Produces this output on compile (trimmed for message size): > > > 1>------ Build started: Project: netlib-test, Configuration: Debug Win32 ------ > 1>Build started 2/23/2011 10:35:27 AM. > 1>InitializeBuildStatus: > 1> Touching "Debug\netlib-test.unsuccessfulbuild". > 1>ClCompile: > 1> netlib-test.cpp > 1>c:\libraries\boost\include\boost-1_46\boost\spirit\home\qi\nonterminal\rule.hpp(266): > error C2664: 'boost::spirit::qi::transform_attribute<Exposed,Transformed>::pre' > : cannot convert parameter 1 from 'boost::optional<T>' to > 'boost::spirit::qi::optional<Subject> &' [snip] This looks like a Spirit bug. Can you try building with Boost's SVN Trunk and see if it's still an issue? I remember submitting a test to the Spirit developers about this particular problem and I think they're looking at getting this addressed soon. BTW, have you tried building the tests that come with cpp-netlib? And can you say which version you're using? Thanks and I look forward to hearing from you again soon. -- Dean Michael Berris about.me/deanberris |
From: Andy <joi...@ho...> - 2011-03-31 18:50:20
|
I am having the same issue with boost 1.46 and netlib-8.1. I am trying to compile hello_world_client.cpp with instruction provided on your website. Is there workaround it till the problem is fixed? |
From: Sébastien T. <me...@st...> - 2011-03-31 19:21:14
|
I never got a chance to test the boost svn version to see if the issue was resolved but Dean felt that the fix was in there so that might be a good place to start. On Thu, Mar 31, 2011 at 12:44 PM, Andy <joi...@ho...> wrote: > I am having the same issue with boost 1.46 and netlib-8.1. I am trying to > compile hello_world_client.cpp with instruction provided on your website. Is > there workaround it till the problem is fixed? > > > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > Cpp-netlib-devel mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel > |
From: Dean M. B. <mik...@gm...> - 2011-04-01 02:23:00
|
On Fri, Apr 1, 2011 at 2:55 AM, Sébastien Taylor <me...@st...> wrote: > I never got a chance to test the boost svn version to see if the issue > was resolved but Dean felt that the fix was in there so that might be > a good place to start. > I have been developing against Boost's SVN trunk but I don't see the fix in Spirit there yet. The problem is really caused by the re-do of the attribute system in Spirit, which unfortunately breaks the code that used to rely on some extension points in Spirit. I have a choice between fixing the grammar in the URI implementation and having the Spirit guys look at and fix the Spirit implementation. I'm leaning towards fixing the grammar more than having Spirit fix the breakage, but I am coordinating with them too. > On Thu, Mar 31, 2011 at 12:44 PM, Andy <joi...@ho...> wrote: >> I am having the same issue with boost 1.46 and netlib-8.1. I am trying to >> compile hello_world_client.cpp with instruction provided on your website. Is >> there workaround it till the problem is fixed? >> For the MPL stuff, yes there's workaround -- you can try `#include <boost/mpl/or.hpp>` before any cpp-netlib includes. For the Spirit stuff, unfortunately no workaround for that yet. HTH -- Dean Michael Berris http://about.me/deanberris |