Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Qt5 and WinSock.h issue

$
0
0
Hi This is regarding Windows platform – MSVC2010. In my Qt4.8.1 based application I was including BOOST/ASIO headers after including all Qt headers. When I tried to compile in Qt5.0.1 I got error: ..\asio\asio\detail\socket_types.hpp:22: error: C1189: #error : WinSock.h has already been included. The problem is with #include <QtNetwork> being included before ASIO. What changed in QtNetwork regarding WinSock.h? Thank you.

Viewing all articles
Browse latest Browse all 2113

Trending Articles