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

            S.l.e!ep.¢%

            像打了激速一樣,以四倍的速度運(yùn)轉(zhuǎn),開(kāi)心的工作
            簡(jiǎn)單、開(kāi)放、平等的公司文化;尊重個(gè)性、自由與個(gè)人價(jià)值;
            posts - 1098, comments - 335, trackbacks - 0, articles - 1
              C++博客 :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

            #include Error

            Posted on 2010-06-17 12:09 S.l.e!ep.¢% 閱讀(628) 評(píng)論(0)  編輯 收藏 引用 所屬分類: ICE
            加入 #include <IceSSL/Plugin.h> 后出現(xiàn)
            ??? error C2011: 'fd_set' : 'struct' type redefinition ......

            google找到相關(guān)的解決方案

            #if?!defined(NDEBUG)?&&?!defined(_STLP_DEBUG)
            #?define?_STLP_DEBUG
            #endif

            #ifndef?_WIN32_WINNT
            #???define?_WIN32_WINNT?
            0x400
            #endif

            #include?
            <winsock2.h>
            #include?
            <Ice/Ice.h>
            #include?
            <IceSSL/Plugin.h>

            #include?
            <stdlib.h>
            #include?
            <stdio.h>

            #pragma?comment(lib,?
            "Iced.lib")
            #pragma?comment(lib,?
            "IceUtild.lib")


            使用前,先要進(jìn)行如下設(shè)置:

            添加/GR編譯選項(xiàng) Enable C++ RTTI。
            添加ice的include、 StlPort的include、ice的lib路徑,并將這些路徑提到最前,以免與VC的沖突。
            為L(zhǎng)ink Object/Library modles 加上iced.lib iceutild.lib 。



            1、編譯中出現(xiàn)
            Linking
            LINK?:?fatal?error?LNK1104:?cannot?open?file?
            "stlport_vc6_static.lib"
            Error?executing?link.exe.

            解決辦法:
            Porject->Setting->C++->CodeGeneration 設(shè)置Use Run-time library=Debug Multithreaded DLL


            2、編譯中出現(xiàn)
            ?
            warning?C4005:?'_STLP_DEBUG_CHECK'?:?macro?redefinition

            解 決辦法:在包含ice/ice.h之前添加以下代碼
            #if?!defined(NDEBUG)?&&?!defined(_STLP_DEBUG)
            #?define?_STLP_DEBUG
            #endif



            3、 編譯中出現(xiàn)
            error?C2065:?'TryEnterCriticalSection'?:?undeclared?identifier

            解 決辦法:
            在stdafx.h中,加上
            #ifndef?_WIN32_WINNT
            #???define?_WIN32_WINNT?
            0x400
            #endif


            4、 編譯中出現(xiàn)
            error?LNK2001:?unresolved?external?symbol?"__declspec(dllimport)?public:?__thiscall?IceUtil::GCRecMutexInit::GCRecMutexInit(void)"?(__imp_??0GCRecMutexInit@IceUtil@@QAE@XZ)
            error?LNK2001:?unresolved?external?symbol?
            "__declspec(dllimport)?public:?__thiscall?IceUtil::GCRecMutexInit::~GCRecMutexInit(void)"?(__imp_??1GCRecMutexInit@IceUtil@@QAE@XZ)
            D

            解決辦法:
            Porject->Setting->Link-> Object/Library modles:加上iced.lib iceutild.lib

            5、編譯中出現(xiàn)
            error?C2061:?syntax?error?:?identifier?'SC_HANDLE'
            error?C2061:?syntax?error?:?identifier?
            'SERVICE_STATUS'
            error?C2146:?syntax?error?:?missing?
            ';'?before?identifier?'_statusHandle'
            error?C2501:?
            'SERVICE_STATUS_HANDLE'?:?missing?storage-class?or?type?specifiers
            error?C2501:?
            '_statusHandle'?:?missing?storage-class?or?type?specifiers
            error?C2146:?syntax?error?:?missing?
            ';'?before?identifier?'_status'
            error?C2501:?
            'SERVICE_STATUS'?:?missing?storage-class?or?type?specifiers
            error?C2501:?
            '_status'?:?missing?storage-class?or?type?specifiers

            解 決辦法:
            在stdafx.h或其他文件中增加
            #include??<WINSVC.H>


            作 者:李珍寶(http://zhenbaodao51.51.net?,http://www.lizhenbao.com , http://www.cnitblog.com/lizhenbao/?), 轉(zhuǎn)載請(qǐng)注明出處
            完。
            99久久国产免费福利| 久久99国产精品成人欧美| 精品久久久久久无码不卡| 欧美日韩成人精品久久久免费看| 狠狠色丁香婷婷久久综合| 亚洲中文字幕久久精品无码APP| 亚洲精品无码久久久久去q| 人妻久久久一区二区三区| 99热精品久久只有精品| 欧美色综合久久久久久| 久久亚洲欧美国产精品| www性久久久com| 伊人久久亚洲综合影院| 91精品国产91久久久久福利| 精品人妻伦九区久久AAA片69| 成人久久免费网站| 久久久精品人妻无码专区不卡 | 九九久久自然熟的香蕉图片| 国产一区二区三区久久| 国内精品久久久久久久涩爱| 久久中文字幕人妻熟av女| 69SEX久久精品国产麻豆| 亚洲国产精品无码久久一区二区| 94久久国产乱子伦精品免费| 无码精品久久久天天影视| 亚洲精品高清一二区久久| 久久国产精品二国产精品| 久久精品九九亚洲精品天堂| 欧美亚洲色综久久精品国产| 久久艹国产| 久久99亚洲综合精品首页| 国内精品久久九九国产精品| 国产精品久久久久国产A级| 亚洲AV无码一区东京热久久| 欧美日韩精品久久免费| 一本一本久久a久久精品综合麻豆| 久久九九久精品国产免费直播| 国产三级观看久久| 久久天天躁狠狠躁夜夜2020 | 久久精品毛片免费观看| 中文字幕乱码久久午夜|