Correct, I'm using netlib 0.8.1. Fortunately I figured it out, after taking a break from the problem.
The fix was to remove BOOST_NO_INTRINSIC_WCHAR_T define that we have been using to build boost. Here is the error, in case anyone else comes across the same problem. 1>C:\Work\trunk\boost_1_45_0\boost/type_traits/make_unsigned.hpp(38) : error C2027: use of undefined type 'boost::STATIC_ASSERTION_FAILURE<x>' 1> with 1> [ 1> x=false 1> ] 1> C:\Work\trunk\boost_1_45_0\boost/type_traits/make_unsigned.hpp(130) : see reference to class template instantiation 'boost::detail::make_unsigned_imp<T>' being compiled 1> with 1> [ 1> T=wchar_t 1> ] 1> C:\Work\trunk\boost_1_45_0\boost/spirit/home/support/utf8.hpp(35) : see reference to class template instantiation 'boost::make_unsigned<T>' being compiled 1> with 1> [ 1> T=wchar_t 1> ] 1> C:\Work\trunk\boost_1_45_0\boost/spirit/home/support/info.hpp(53) : see reference to function template instantiation 'boost::spirit::utf8_string boost::spirit::to_utf8<wchar_t>(Char)' being compiled 1> with 1> [ 1> Char=wchar_t 1> ] Thanks -----Original Message----- From: Dean Michael Berris [mailto:[email protected]] Sent: Thursday, February 17, 2011 7:25 PM To: C++ Networking Library Developers Mailing List Cc: Ryan Barr Subject: Re: [cpp-netlib-devel] compile error building with boost 1.45 and VS2008 Hi Ryan, On Fri, Feb 18, 2011 at 6:46 AM, Ryan Barr <[email protected]> wrote: > Hi, I’m trying to use your library for my project, but I get the following > compile error when I add > > #include <boost/network/protocol/http/client.hpp> > > To my code. > Can you post a minimal example? How about if you just include that in an (empty) cpp file like this: #include <boost/network/protocol/http/client.hpp> int main(int argc, char * argv[]) { return 0; } Do you still get the error? > > > error C2027: use of undefined type 'boost::STATIC_ASSERTION_FAILURE<x>' > > C:\Work\trunk\boost_1_45_0\boost\type_traits\make_unsigned.hpp 38 > > > > I’m using boost 1.45 and have tried cpp-netlib 0.8 and current development > version. > 0.8.1 you mean? > > > All my other code that relies on boost works fine. > > > > I’m on Vista x86, using VS2008. I use CMake and I defined > BOOST_FILESYSTEM_VERSION to 2. > > > > Any ideas? > > It would be hard to diagnose the problem without more context. Can you post the full error? Or is the above the full error that you get? Unfortunately I have no access to VS2008 at the moment. For the meantime maybe others can help out? > > Thank you > I'm sorry I can't be of much help yet. Looking forward to being able to help you out more later. -- Dean Michael Berris about.me/deanberris ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Cpp-netlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel
