Hi Erik,
2010/1/20 Nelson, Erik - 2 <[email protected]>
> Hi there,
>
> I'm playing with the hello_world.cpp (current one in
> mikhailberis-cpp-netlib git) and have a couple of questions. Here's the
> start of my compiler output
>
> 1>http_server.cpp
> 1>Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
> example:
> 1>- add -D_WIN32_WINNT=0x0501 to the compiler command line; or
> 1>- add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
> 1>Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
> 1>c:\work\boost\boost/network/protocol/http/traits/impl/request_methods.
> ipp(37) : error C2059: syntax error : 'constant'
>
>
> Comments/Questions:
> 1) I know that _WIN32_WINNT is #defined in the jamfile, but I'm curious
> if anyone knows why this warning comes up with cpp-netlib... We use
> boost extensively but have never needed to #define this
>
This comes from boost asio (boost/asio/detail/socket_types.hpp), there must
be something in your configuration - the order in which you include
windows.h, perhaps.
> 2) the error comes from
> request_methods.ipp, on line
> static char const * const DELETE = "DELETE";
> Winnt.h #defines DELETE. If I change the offending line in
> request_methods.ipp to 'DELETE_', that seems to fix it
>
Can you submit a patch?
>
> After I fix that, the next error I get is:
> 1>c:\work\boost\boost/network/uri/http/detail/parse_specific.hpp(74) :
> error C2065: 'not' : undeclared identifier
>
> Adding #include <ciso646> to parse_specific.hpp gets it on the road, but
> then I come to something I don't see any obvious answer to:
>
> 1>c:\work\boost\boost/network/uri/http/uri.hpp(36) : error C2597:
> illegal reference to non-static member
> 'boost::network::uri::basic_uri<boost::network::tags::http_default_8bit_
> tcp_resolve>::string_type'
>
> It's complaining about this code
>
> uint32_t port() const {
> return parts_.port ? *(parts_.port) :
> (boost::iequals(parts_.scheme, string_type("https"))
> ? 443u : 80u);
> }
>
>
> Am I doing something wrong? Or is this known to be broken right now?
> I'm using a copy of Dean's code that I pulled down today. Any guidance
> would be appreciated.
>
>
You're not doing anything wrong if all you're doing is trying to build a
test... we're still short of being release ready but this code hasn't
changed since 0.4 so I can't explain this error. Dean?
G
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Cpp-netlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel