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

            隨筆分類

            隨筆檔案

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            久久人人爽人人爽人人AV| 久久九九有精品国产23百花影院| 青青草国产97免久久费观看| 香蕉99久久国产综合精品宅男自| 久久夜色精品国产亚洲| 久久免费高清视频| 久久妇女高潮几次MBA| 青青青青久久精品国产h| 久久无码中文字幕东京热| 久久精品国产亚洲一区二区| 国产成人精品综合久久久久 | 亚洲AV无一区二区三区久久 | 免费精品久久久久久中文字幕| 久久人人爽人人爽人人片AV不| 无码人妻少妇久久中文字幕| 久久精品国产精品青草app| 国内精品人妻无码久久久影院导航| 伊人久久精品线影院| 996久久国产精品线观看| 亚洲国产美女精品久久久久∴ | 久久受www免费人成_看片中文| 中文字幕久久欲求不满| 精品蜜臀久久久久99网站| 久久频这里精品99香蕉久| 欧美无乱码久久久免费午夜一区二区三区中文字幕 | 久久久精品久久久久久 | 久久五月精品中文字幕| 国产精品久久久久久久| 久久久久久国产精品免费无码| 久久www免费人成看片| 无码八A片人妻少妇久久| 中文字幕久久精品 | 国产精品久久久久国产A级| 久久99精品久久久久久动态图| 久久精品aⅴ无码中文字字幕重口 久久精品a亚洲国产v高清不卡 | 久久亚洲精品无码aⅴ大香 | 性高湖久久久久久久久AAAAA| 久久亚洲欧洲国产综合| 人人狠狠综合久久亚洲| 久久人人爽人人爽人人片AV麻烦 | 久久99精品九九九久久婷婷|