From: Dean M. B. <mik...@gm...> - 2011-02-17 03:07:38
|
On Thu, Feb 17, 2011 at 1:22 AM, Gregory Symons <gs...@dr...> wrote: > So now that I've got things building in Linux (I'm working on cleaning > up those changes for pull request), I also need things to build on > Windows with VS 2010 (no openssl for now; we actually don't need secure > connections in our product. Yet:). Has anyone tried to do that? I'm > seeing some weird compile errors, and I want to make sure they're not > caused by my CMake hacks before I think about them too hard. > Cool! BTW, the CMake configuration (in 0.9-devel) will try to look for OpenSSL and if it's not found a preprocessor definition is avoided that would make the library rely on OpenSSL. More specifically, if it can't find OpenSSL development files, BOOST_NETWORK_ENABLE_HTTPS is not defined. > I'm actually using the Windows SDK (not a full version of Visual Studio) > with CMake generated solution files and MSBuild. > > Here are some example errors that I'm seeing. Like I said, they're > weird: > > ".\cpp-netlib\CPP-NETLIB.sln" (default target) (1) -> > ".\cpp-netlib\libs\network\test\http > \cpp-netlib-http-client_constructor_test.vcxproj.metaproj > " (default target) (3) -> > ".\cpp-netlib\libs\network\test\http > \cpp-netlib-http-client_constructor_test.vcxproj" (defaul > t target) (6) -> > (ClCompile target) -> > .\boost\boost/asio/io_service.hpp(533): error C2248: > 'boost::noncopyable_::noncopyable::non > copyable' : cannot access private member declared in class > 'boost::noncopyable_::noncopyable' [.\cpp-netlib\libs\network\test\http > \cpp-netlib-http-client_constructor_test.vcxproj] > > ".\cpp-netlib\CPP-NETLIB.sln" (default target) (1) -> > ".\cpp-netlib\libs\network\test\http > \cpp-netlib-http-client_get_different_port_test.vcxproj.m > etaproj" (default target) (7) -> > ".\cpp-netlib\libs\network\test\http > \cpp-netlib-http-client_get_different_port_test.vcxproj" > (default target) (8) -> > .\cpp-netlib > \boost/network/protocol/http/policies/simple_connection.hpp(57): error > C2440: ' > initializing' : cannot convert from 'std::_Tree_const_iterator<_Mytree>' > to 'std::_Tree_const_iterator<_Mytree>' [.\cpp-netlib\libs\network\test > \http\cpp-netlib-http-client_get_different_port_test.vcxproj] > .\cpp-netlib > \boost/network/protocol/http/policies/simple_connection.hpp(58): error > C2678: binary '!=' : no operator found which takes a left-hand operand > of type 'std::_Tree_const_iterator<_Mytree>' (or there is no accepta > ble conversion) [.\cpp-netlib\libs\network\test\http > \cpp-netlib-http-client_get_different_port_test.vcxproj] > Hmm... these errors looks suspicious. These don't happen on Linux? > There are other problems that are definitely the result of my > (apparently still incomplete) CMake hacks to build against dynamic > libraries, but the compile errors don't make any sense. > Looking forward to the completed CMake hacks. :) Thanks for the effort Gregory! -- Dean Michael Berris about.me/deanberris |