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

            導航

            統計

            常用鏈接

            留言簿(3)

            隨筆分類

            隨筆檔案

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            久久久亚洲欧洲日产国码aⅴ| 精品熟女少妇AV免费久久| 久久精品国产清高在天天线| 久久99精品国产99久久6男男| 2020最新久久久视精品爱| 婷婷久久综合九色综合绿巨人 | 久久精品国产亚洲7777| 手机看片久久高清国产日韩| 久久精品蜜芽亚洲国产AV| 久久毛片免费看一区二区三区| 亚洲午夜久久久久久噜噜噜| 精品久久久无码中文字幕| 日韩乱码人妻无码中文字幕久久| 国产精品亚洲综合专区片高清久久久| 性做久久久久久免费观看| 99久久精品国产一区二区三区| 欧美一区二区久久精品| 国产精品青草久久久久福利99 | 久久精品国产亚洲AV高清热| 久久无码国产| 国产女人aaa级久久久级| 97久久香蕉国产线看观看| 色妞色综合久久夜夜| 人妻少妇精品久久| 久久精品国产亚洲7777| 久久综合狠狠综合久久激情 | 久久国产乱子伦免费精品| 丁香色欲久久久久久综合网| 污污内射久久一区二区欧美日韩| 久久久精品人妻无码专区不卡| 日韩一区二区久久久久久| 久久精品国产亚洲AV无码麻豆 | 偷偷做久久久久网站| 国产亚洲精午夜久久久久久| 中文精品久久久久国产网址| 久久99国产精品久久| 国产成人久久精品激情| 91精品国产综合久久久久久| 99久久成人国产精品免费| 丁香五月网久久综合| 99精品伊人久久久大香线蕉|