• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            colorful

            zc qq:1337220912

             

            wxWidgets+boost::asio "socket_types.hpp(22) : fatal error C1189: #error : WinSock.h has already been included"

            http://blog.csdn.net/gzlyb/article/details/5870326

            因為wxWidgets 里已經include "Winsock.h"
            在網上找了解決方法:
            http://boost.2283326.n4.nabble.com/quot-WinSock-h-has-already-been-included-quot-problem-with-asio-and-VC-2010-td3574900.html
            兩種方法都可行

            "WinSock.h has already been included" : problem with asio and VC++2010

            Claude

            Hi!

            I use a boost asio library in my program. When I compile with Visual C++ obtain this error:

            [...]\boost_1_45_0\boost\asio\detail\socket_types.hpp(22): fatal error C1189: #error :  WinSock.h has already been included

            How can I fix this error?


            Reply | Threaded |   star

            Re: "WinSock.h has already been included" : problem with asio and VC++2010

            michi7x7-2

            > Hi!
            Hello,

            > I use a boost asio library in my program. When I compile with Visual C++
            > obtain this error:
            >
            > [...]\boost_1_45_0\boost\asio\detail\socket_types.hpp(22): fatal error
            > C1189: #error :  WinSock.h has already been included
            >
            > How can I fix this error?

            Try to include asio before including any other Windows-Headers, or use
            WinSock2.h instead of WinSock.

            Best Regards,

            michi7x7

            _______________________________________________
            Boost-users mailing list
            [hidden email]
            http://lists.boost.org/mailman/listinfo.cgi/boost-users
            Reply | Threaded |   star

            Re: "WinSock.h has already been included" : problem with asio and VC++2010

            Hee-young Kim
            In reply to this post by Claude
            If you use "Windows.h" library, set "#define WIN32_LEAN_AND_MEAN" in "stdafx.h" or a suitable place to avoid the duplication.

            from Hee-young
            Reply | Threaded |   star

            Re: "WinSock.h has already been included" : problem with asio and VC++2010

            Claude
            I solved the problem, thanks!

            posted on 2012-04-05 13:25 多彩人生 閱讀(2735) 評論(0)  編輯 收藏 引用

            導航

            統計

            常用鏈接

            留言簿(3)

            隨筆分類

            隨筆檔案

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            久久国产精品无| 久久精品天天中文字幕人妻| 精品久久久久中文字| 久久久久九九精品影院| 99久久夜色精品国产网站| 国产成人综合久久综合 | 亚洲欧美国产精品专区久久| 无码伊人66久久大杳蕉网站谷歌| 久久国产成人精品麻豆| 亚洲国产婷婷香蕉久久久久久 | 久久久久久青草大香综合精品| 97久久国产露脸精品国产| 久久高潮一级毛片免费| 久久水蜜桃亚洲av无码精品麻豆 | 免费无码国产欧美久久18| 久久精品9988| 国产亚洲精久久久久久无码| 欧美精品丝袜久久久中文字幕| 精品久久香蕉国产线看观看亚洲| 国产欧美久久久精品影院| 久久电影网| 狠狠色丁香婷婷综合久久来来去| 欧洲精品久久久av无码电影| 亚洲午夜福利精品久久| 无夜精品久久久久久| 狠狠色丁香婷婷综合久久来来去| 色综合久久中文综合网| 国产精品久久久久影院色| 精品久久久久久成人AV| 狠狠色丁香久久婷婷综合五月| 久久无码国产专区精品| 久久成人小视频| 天堂久久天堂AV色综合| 伊人久久大香线蕉av不卡 | 久久久久亚洲爆乳少妇无| 91久久精品电影| 国产高清美女一级a毛片久久w| 欧美伊香蕉久久综合类网站| AA级片免费看视频久久| 久久伊人影视| 亚洲AV日韩精品久久久久|