error WinSock.h has already been included Boost Windows Qt

后端 未结 1 1795
天涯浪人
天涯浪人 2020-12-20 19:30

I am using boost lib on Qt creator to develop an application, my platform is Windows8 MSVC2013 64.

I have two class on each I am using boost headers,

Now I n

相关标签:
1条回答
  • 2020-12-20 19:58

    Move the #define WIN32_LEAN_AND_MEAN to g++ command line argument list as -DWIN32_LEAN_AND_MEAN. This helped me.
    One more thing helped me is reordering #include directives to put boost includes before all others.

    0 讨论(0)
提交回复
热议问题