|
From: Nelson, E. - 2 <eri...@ba...> - 2010-01-20 20:43:59
|
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
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
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.
Thanks
Erik
|