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

            Error

            C++博客 首頁 新隨筆 聯系 聚合 管理
              217 Posts :: 61 Stories :: 32 Comments :: 0 Trackbacks
            1. 編譯時,error C2977 "std::tuple" too many template arguments問題的解決辦法
            網文http://www.cnblogs.com/fresky/articles/2455058.html中的方案如下:
            打開 c:\program files (x86)\Microsoft Visual Studio 11.0\VC\include\xstddef,把 _VARIADIC_MAX定義成10。
            這個方案一方面需要Administrator,其實是需要System權限才能修改Windows 8中的System文件,另一方面,會對所有的C/C++代碼造成影響
            其實,更簡單的方法是打開“解決方案資源管理器”,右鍵打開項目“屬性”,在C/C++ --> “預處理器”--> “預處理定義”中增加以下行即可:
            _VARIADIC_MAX=10
            坑爹吧?

            /////////////////////////////////////////////
            // date: 2012-12-11
            上面的問題是vc的tr1/tuple引起的,后來高手指點下知道gtest是有一個宏來控制這個東東的,,,

            //   GTEST_HAS_TR1_TUPLE      - Define it to 1/0 to indicate tr1::tuple
            //                              is/isn't available.
            //   GTEST_HAS_SEH            - Define it to 1/0 to indicate whether the
            //                              compiler supports Microsoft's "Structured
            //                              Exception Handling".
            //   GTEST_HAS_STREAM_REDIRECTION
            //                            - Define it to 1/0 to indicate whether the
            //                              platform supports I/O stream redirection using
            //                              dup() and dup2().
            //   GTEST_USE_OWN_TR1_TUPLE  - Define it to 1/0 to indicate whether Google
            //                              Test's own tr1 tuple implementation should be
            //                              used.  Unused when the user sets
            //                              GTEST_HAS_TR1_TUPLE to 0.



            // Determines whether Google Test can use tr1/tuple.  You can define
            // this macro to 0 to prevent Google Test from using tuple (any
            // feature depending on tuple with be disabled in this mode).
            #ifndef GTEST_HAS_TR1_TUPLE
            // The user didn't tell us not to do it, so we assume it's OK.
            # define GTEST_HAS_TR1_TUPLE 1
            #endif  // GTEST_HAS_TR1_TUPLE
            // Determines whether Google Test's own tr1 tuple implementation
            // should be used.
            #ifndef GTEST_USE_OWN_TR1_TUPLE
            // The user didn't tell us, so we need to figure it out.


            using vs2012
            gtest tuple build error
            gtestport.h
            #define GTEST_USE_OWN_TR1_TUPLE 0
            #define GTEST_HAS_TR1_TUPLE 0
            posted on 2012-12-10 15:09 Enic 閱讀(1213) 評論(3)  編輯 收藏 引用 所屬分類: gtest

            評論

            # re: gtest編譯出錯: 編譯時,error C2977 "std::tuple" too many template arguments問題的解決辦法[未登錄] 2012-12-11 09:46
            有一個配置選項可以看一下 GTEST_HAS_TR1_TUPLE   回復  更多評論
              

            # re: gtest編譯出錯: 編譯時,error C2977 "std::tuple" too many template arguments問題的解決辦法 2012-12-11 10:53 Enic
            我搜索下代碼看看,確實有這個東西,看注釋應該是可以選擇啟用,關閉,或者使用gtest自帶的版本@無
              回復  更多評論
              

            # re: gtest編譯出錯: 編譯時,error C2977 "std::tuple" too many template arguments問題的解決辦法 2013-11-18 00:25 Enic
            編譯chromium的時候也遇到了同樣的問題,各種定義都無效,最后還是找到原來的帖子,,,唉,,,

            在C/C++ --> “預處理器”--> “預處理定義”中增加以下行即可:
            _VARIADIC_MAX=10

            這一招生效了,,,  回復  更多評論
              

            无码国产69精品久久久久网站| 国产精品99精品久久免费| 久久久久国色AV免费观看| 久久综合伊人77777麻豆| 色婷婷久久久SWAG精品| 大香伊人久久精品一区二区| 99久久久精品免费观看国产| 久久久WWW成人免费毛片| 久久婷婷激情综合色综合俺也去| 国产精品99久久不卡| 99久久国产宗和精品1上映| av国内精品久久久久影院| 一级A毛片免费观看久久精品| 99久久人妻无码精品系列| 性做久久久久久免费观看| 99国产欧美精品久久久蜜芽| 亚洲精品国产综合久久一线| 97久久精品人人做人人爽| 久久综合久久综合亚洲| 思思久久99热免费精品6| 狠狠色婷婷久久综合频道日韩 | 欧美丰满熟妇BBB久久久| 大香网伊人久久综合网2020| 婷婷伊人久久大香线蕉AV| 亚洲国产精品无码久久青草 | 日本精品久久久久影院日本| 77777亚洲午夜久久多喷| 日韩精品久久无码中文字幕| 国产香蕉久久精品综合网| 午夜精品久久久内射近拍高清| 国产精品免费久久| 国产精品永久久久久久久久久| 色婷婷综合久久久久中文一区二区 | 麻豆久久久9性大片| 中文字幕久久亚洲一区| 久久综合九色综合久99| 久久久久亚洲AV无码专区网站| 久久久WWW成人免费精品| 亚洲国产成人精品久久久国产成人一区二区三区综 | 久久久无码人妻精品无码| 久久亚洲美女精品国产精品|