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


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


            導(dǎo)航

            統(tǒng)計(jì)

            常用鏈接

            留言簿(3)

            隨筆分類

            隨筆檔案

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            久久亚洲色一区二区三区| 99国产精品久久| 久久www免费人成精品香蕉| 99久久国产综合精品成人影院| 久久人妻无码中文字幕| 无码任你躁久久久久久久| 久久香综合精品久久伊人| 久久综合欧美成人| 亚洲欧美成人久久综合中文网| 亚洲AV日韩精品久久久久久| 精品久久777| 久久亚洲AV无码精品色午夜| 久久精品国产亚洲AV大全| 国产高潮国产高潮久久久91| 久久久久久久久波多野高潮| 99国产欧美精品久久久蜜芽| 日韩美女18网站久久精品| 欧美一区二区三区久久综| 久久久久亚洲精品男人的天堂| 久久午夜无码鲁丝片| 天天影视色香欲综合久久| 久久精品麻豆日日躁夜夜躁| 久久综合日本熟妇| 久久这里只有精品久久| 久久久久成人精品无码中文字幕| 尹人香蕉久久99天天拍| 精品久久久久久中文字幕| 久久久久久久女国产乱让韩| 精品国产婷婷久久久| 精品国产福利久久久| 久久99久久99精品免视看动漫| 久久久久久国产a免费观看不卡| 亚洲综合熟女久久久30p| 少妇久久久久久被弄到高潮| 久久亚洲欧美日本精品| 狠狠干狠狠久久| 久久丫精品国产亚洲av| 久久精品国产亚洲av麻豆图片| 中文成人久久久久影院免费观看| 久久久无码精品午夜| 久久丝袜精品中文字幕|