• <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

            因?yàn)閣xWidgets 里已經(jīng)include "Winsock.h"
            在網(wǎng)上找了解決方法:
            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 多彩人生 閱讀(2722) 評論(0)  編輯 收藏 引用


            只有注冊用戶登錄后才能發(fā)表評論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            導(dǎo)航

            統(tǒng)計(jì)

            常用鏈接

            留言簿(3)

            隨筆分類

            隨筆檔案

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            91精品观看91久久久久久| 奇米影视7777久久精品| 99久久综合狠狠综合久久止| aaa级精品久久久国产片| 久久综合久久综合久久| 久久久青草青青国产亚洲免观| 亚洲综合久久夜AV | 国产精品久久久久影院色 | 久久久久人妻一区精品| 中文国产成人精品久久亚洲精品AⅤ无码精品| 亚洲精品乱码久久久久久不卡| 久久精品aⅴ无码中文字字幕不卡 久久精品aⅴ无码中文字字幕重口 | 成人久久免费网站| 国产99精品久久| 伊人久久大香线蕉av一区| 亚洲国产精品久久久久| 熟妇人妻久久中文字幕| 色婷婷狠狠久久综合五月| 伊人久久综在合线亚洲2019| 亚洲va中文字幕无码久久不卡| 久久精品成人免费观看97| 精品无码久久久久国产| 久久婷婷国产剧情内射白浆| 精品久久久久久国产牛牛app| 人妻少妇久久中文字幕| 久久午夜夜伦鲁鲁片免费无码影视| 婷婷综合久久狠狠色99h| 欧美熟妇另类久久久久久不卡| 亚洲国产成人精品女人久久久| 精品久久久久久国产三级| 久久中文字幕一区二区| 99久久精品日本一区二区免费| 久久国产欧美日韩精品| 模特私拍国产精品久久| 狠狠色丁香久久婷婷综合蜜芽五月| 国产精品综合久久第一页 | 伊人久久大香线蕉综合热线| 久久久久亚洲AV成人网人人网站 | 2021国内精品久久久久久影院| 久久亚洲天堂| 久久精品久久久久观看99水蜜桃|