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

            隨筆分類

            隨筆檔案

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            久久青草国产精品一区| 久久精品三级视频| 亚洲香蕉网久久综合影视| 久久久无码人妻精品无码| 国产综合久久久久| 欧美精品丝袜久久久中文字幕 | 欧美精品丝袜久久久中文字幕 | 精品久久久久久国产免费了| 一本大道久久香蕉成人网| 欧美午夜精品久久久久免费视| 99re这里只有精品热久久| 午夜福利91久久福利| 2021少妇久久久久久久久久| 青青热久久国产久精品 | 国产无套内射久久久国产| 久久天天躁狠狠躁夜夜avapp| 久久精品人人做人人妻人人玩 | 精品久久久一二三区| 久久亚洲欧美日本精品| 欧美日韩中文字幕久久久不卡| www久久久天天com| 少妇人妻88久久中文字幕| 免费精品国产日韩热久久| 久久伊人精品青青草原高清| 亚洲综合熟女久久久30p| 久久久久国产一区二区| 精品久久久久久久无码| 亚洲精品国产综合久久一线| 精品国产乱码久久久久久1区2区 | 亚洲AV乱码久久精品蜜桃| 欧美久久亚洲精品| 久久夜色精品国产亚洲av| 91久久精品国产91性色也| 丰满少妇人妻久久久久久| 久久无码人妻一区二区三区午夜| 久久人人爽人人爽人人片AV高清| 久久国产成人午夜AV影院| 久久精品成人国产午夜| 国内精品久久久久伊人av| 99久久久精品免费观看国产| 国产99精品久久|