Not sure if my last reply went through, however if you use the distro 
from http://www.nuwen.net/mingw.html it is easy to set up and configure 
and comes with some other handy tools and libraries.

Also, the original posters problem is already answered, they need to 
manually link in the 2 additional libraries I mentioned previously. I 
just had this same error building a different app that depended on 
Boost.ASIO using MinGW.


On 8/17/2010 10:52 AM, Wim Dumon wrote:
> Yufeng,
>
> I did compile Wt on mingw in the past and committed the changes.
> Possibly, you need wt 3.1.4 to make it work properly.
>
> But I find it's a struggle to install MinGW correctly - especially
> when it comes to compiler versions etc. If you can give me some
> guidance there, I'd love to make Wt work out of the box on MinGW.
> Unfortunately the MinGW homepage confuses me about what I should
> install...
>
> Regards,
> Wim.
>
> 2010/8/15<[email protected]>:
> >    hi:
> >      I try to build wt(3.1.3) in windows +mingw(gcc4.4.0) +CodeBlocks, I 
> > have
> >  builded libwt.dll.a&libwt.a,but building libwthttp.dll.a  show these
> >  message:
> >  How to solve it?
> >  ||=== WT, all ===|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_types.hpp|37|warning:
> >  #warning Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately.|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_types.hpp|38|warning:
> >  #warning For example, add -D_WIN32_WINNT=0x0501 to the compiler command
> >  line.|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_types.hpp|39|warning:
> >  #warning Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).|
> >  
> > CMakeFiles\wt.dir\Wt\WStringUtil.obj:D:\wtweb\wt-3.1.3\src\Wt\WStringUtil.C|42|undefined
> >  reference to `boost::from_utf8(std::string const&)'|
> >  
> > CMakeFiles\wt.dir\Wt\WStringUtil.obj:D:\wtweb\wt-3.1.3\src\Wt\WStringUtil.C|37|undefined
> >  reference to `boost::to_utf8(std::basic_string<wchar_t,
> >  std::char_traits<wchar_t>, std::allocator<wchar_t>  >  const&)'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function
> >  `send<boost::asio::detail::consuming_buffers<boost::asio::const_buffer,
> >  boost::asio::const_buffers_1>  >':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\win_iocp_socket_service.hpp|674|undefined
> >  reference to `wsas...@28'|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\win_iocp_socket_service.hpp|677|undefined
> >  reference to `wsagetlaster...@0'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `clear_error':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|53|undefined
> >  reference to `wsasetlaster...@4'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `close':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|132|undefined
> >  reference to `closesoc...@4'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `error_wrapper<int>':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|65|undefined
> >  reference to `wsagetlaster...@0'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `clear_error':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|53|undefined
> >  reference to `wsasetlaster...@4'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `do_init':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\winsock_init.hpp|51|undefined
> >  reference to `wsastar...@8'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function
> >  `receive<boost::asio::mutable_buffers_1>':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\win_iocp_socket_service.hpp|977|undefined
> >  reference to `wsar...@28'|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\win_iocp_socket_service.hpp|980|undefined
> >  reference to `wsagetlaster...@0'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `do_init':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\winsock_init.hpp|51|undefined
> >  reference to `wsastar...@8'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `~do_init':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\winsock_init.hpp|56|undefined
> >  reference to `wsaclea...@0'|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\winsock_init.hpp|56|undefined
> >  reference to `wsaclea...@0'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `clear_error':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|53|undefined
> >  reference to `wsasetlaster...@4'|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|53|undefined
> >  reference to `wsasetlaster...@4'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `close':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|132|undefined
> >  reference to `closesoc...@4'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `error_wrapper<int>':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|65|undefined
> >  reference to `wsagetlaster...@0'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `clear_error':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|53|undefined
> >  reference to `wsasetlaster...@4'|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|53|undefined
> >  reference to `wsasetlaster...@4'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `send':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|325|undefined
> >  reference to `wsas...@28'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `error_wrapper<int>':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|65|undefined
> >  reference to `wsagetlaster...@0'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `clear_error':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|53|undefined
> >  reference to `wsasetlaster...@4'|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|53|undefined
> >  reference to `wsasetlaster...@4'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `call_connect<int>':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|154|undefined
> >  reference to `conn...@12'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `error_wrapper<int>':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|65|undefined
> >  reference to `wsagetlaster...@0'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `socket':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|382|undefined
> >  reference to `wsasock...@24'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `error_wrapper<unsigned
> >  int>':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|65|undefined
> >  reference to `wsagetlaster...@0'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `clear_error':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|53|undefined
> >  reference to `wsasetlaster...@4'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function
> >  
> > `ZN5boost4asio21stream_socket_serviceINS0_2ip3tcpEE4openERNS0_6detail23win_iocp_socket_serviceIS3_E19implementation_typeERKS3_RNS_6system10error_codeE':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|393|undefined
> >  reference to `setsock...@20'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `clear_error':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|53|undefined
> >  reference to `wsasetlaster...@4'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `getaddrinfo':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|1788|undefined
> >  reference to `getaddri...@16'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function
> >  `translate_addrinfo_error':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|1772|undefined
> >  reference to `wsagetlaster...@0'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `freeaddrinfo':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|1819|undefined
> >  reference to `freeaddri...@4'|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|1819|undefined
> >  reference to `freeaddri...@4'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `clear_error':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|53|undefined
> >  reference to `wsasetlaster...@4'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `close':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|132|undefined
> >  reference to `closesoc...@4'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `error_wrapper<int>':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|65|undefined
> >  reference to `wsagetlaster...@0'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `clear_error':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|53|undefined
> >  reference to `wsasetlaster...@4'|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|53|undefined
> >  reference to `wsasetlaster...@4'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `call_setsockopt<int>':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|428|undefined
> >  reference to `setsock...@20'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `error_wrapper<int>':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|65|undefined
> >  reference to `wsagetlaster...@0'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `clear_error':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|53|undefined
> >  reference to `wsasetlaster...@4'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `close':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|132|undefined
> >  reference to `closesoc...@4'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `error_wrapper<int>':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|65|undefined
> >  reference to `wsagetlaster...@0'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `clear_error':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|53|undefined
> >  reference to `wsasetlaster...@4'|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|53|undefined
> >  reference to `wsasetlaster...@4'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `call_setsockopt<int>':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|428|undefined
> >  reference to `setsock...@20'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `error_wrapper<int>':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|65|undefined
> >  reference to `wsagetlaster...@0'|
> >  CMakeFiles\wt.dir\Wt\Http\Client.obj||In function `clear_error':|
> >  
> > C:\libraries\include\boost-1_43\boost\asio\detail\socket_ops.hpp|53|undefined
> >  reference to `wsasetlaster...@4'|
> >  ||More errors follow but not being shown.|
> >  ||Edit the max errors limit in compiler options...|
> >  ||=== Build finished: 50 errors, 3 warnings ===|
> >
> >
> >  
> > ------------------------------------------------------------------------------
> >  This SF.net email is sponsored by
> >
> >  Make an app they can't live without
> >  Enter the BlackBerry Developer Challenge
> >  http://p.sf.net/sfu/RIM-dev2dev
> >  _______________________________________________
> >  witty-interest mailing list
> >  [email protected]
> >  https://lists.sourceforge.net/lists/listinfo/witty-interest
> >
> >
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>    


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to