• <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 多彩人生 閱讀(2705) 評論(0)  編輯 收藏 引用


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


            導(dǎo)航

            統(tǒng)計

            常用鏈接

            留言簿(3)

            隨筆分類

            隨筆檔案

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            精品一久久香蕉国产线看播放| 久久久国产乱子伦精品作者| 久久e热在这里只有国产中文精品99 | 国产精品99久久久久久董美香| 久久国产成人午夜AV影院| 国产精品久久新婚兰兰| www.久久精品| 狠狠色噜噜色狠狠狠综合久久| 狠狠色婷婷综合天天久久丁香| 伊人 久久 精品| 久久精品成人免费观看97| 无码日韩人妻精品久久蜜桃 | 久久精品国产2020| 精品久久久久久国产三级| 久久久久久九九99精品| 欧美无乱码久久久免费午夜一区二区三区中文字幕 | 亚洲国产精品久久久久婷婷老年| 日产久久强奸免费的看| 久久亚洲国产中v天仙www| 无码精品久久久久久人妻中字| 亚洲国产成人精品女人久久久| 99精品久久精品| 欧美一区二区三区久久综合| 综合久久久久久中文字幕亚洲国产国产综合一区首 | 97精品国产91久久久久久| 综合网日日天干夜夜久久 | 久久久免费精品re6| 99久久精品免费看国产一区二区三区 | 99久久国产综合精品女同图片| 久久精品中文字幕一区| 99热热久久这里只有精品68| 99热成人精品热久久669| 99精品久久久久中文字幕| 无码专区久久综合久中文字幕| 久久国产欧美日韩精品| 久久久国产打桩机| 亚洲精品无码久久久久去q| 国内精品久久人妻互换| 国产精品99久久99久久久| 久久综合久久久| 久久久久九九精品影院|