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

            隨筆分類

            隨筆檔案

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            久久r热这里有精品视频| 久久无码人妻一区二区三区| 久久精品无码av| 国产A三级久久精品| 日韩人妻无码精品久久久不卡 | 99精品久久久久中文字幕| 97久久综合精品久久久综合| 久久天天日天天操综合伊人av| 亚洲中文久久精品无码| 精品久久久久久无码中文野结衣| 欧美麻豆久久久久久中文| 99久久www免费人成精品| 亚洲欧美日韩久久精品| 久久精品国产影库免费看| 囯产极品美女高潮无套久久久| 久久福利青草精品资源站| 国产色综合久久无码有码| 国产精品熟女福利久久AV| 国产精品久久久久久吹潮| 久久久精品国产免大香伊 | 大香网伊人久久综合网2020| 狠狠色丁香久久婷婷综合| 四虎影视久久久免费观看| 国产精品久久久久久影院| 精品久久久噜噜噜久久久| 亚洲AV日韩精品久久久久| 久久婷婷五月综合国产尤物app| 91精品国产91久久| 久久99精品国产99久久6男男| 久久精品无码一区二区WWW| 国产精品成人久久久| 国产精品99久久精品爆乳| 国内精品伊人久久久久网站| 亚洲伊人久久大香线蕉苏妲己| 久久综合丁香激情久久| 日本福利片国产午夜久久| 久久久久久综合一区中文字幕| 免费观看久久精彩视频| 久久线看观看精品香蕉国产| 久久综合久久综合久久| 国产精品欧美亚洲韩国日本久久 |