Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt5 and WinSock.h issue
Qt 6.11 is out! See what's new in the release blog

Qt5 and WinSock.h issue

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 3.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    marcus.fr
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • U Offline
      U Offline
      Ujjwal
      wrote on last edited by
      #2

      Hi,

      I am getting the same error. Please update if you find any solutions regarding this.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved