久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <small id='Z503I'></small><noframes id='Z503I'>

      <i id='Z503I'><tr id='Z503I'><dt id='Z503I'><q id='Z503I'><span id='Z503I'><b id='Z503I'><form id='Z503I'><ins id='Z503I'></ins><ul id='Z503I'></ul><sub id='Z503I'></sub></form><legend id='Z503I'></legend><bdo id='Z503I'><pre id='Z503I'><center id='Z503I'></center></pre></bdo></b><th id='Z503I'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Z503I'><tfoot id='Z503I'></tfoot><dl id='Z503I'><fieldset id='Z503I'></fieldset></dl></div>
      <legend id='Z503I'><style id='Z503I'><dir id='Z503I'><q id='Z503I'></q></dir></style></legend>

      • <bdo id='Z503I'></bdo><ul id='Z503I'></ul>
      1. <tfoot id='Z503I'></tfoot>

        混合調試和發布庫/二進制文件 - 不好的做法?

        Mixing debug and release library/binary - bad practice?(混合調試和發布庫/二進制文件 - 不好的做法?)

            • <bdo id='mUecz'></bdo><ul id='mUecz'></ul>
            • <small id='mUecz'></small><noframes id='mUecz'>

                <tfoot id='mUecz'></tfoot>
                  <tbody id='mUecz'></tbody>
                <i id='mUecz'><tr id='mUecz'><dt id='mUecz'><q id='mUecz'><span id='mUecz'><b id='mUecz'><form id='mUecz'><ins id='mUecz'></ins><ul id='mUecz'></ul><sub id='mUecz'></sub></form><legend id='mUecz'></legend><bdo id='mUecz'><pre id='mUecz'><center id='mUecz'></center></pre></bdo></b><th id='mUecz'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='mUecz'><tfoot id='mUecz'></tfoot><dl id='mUecz'><fieldset id='mUecz'></fieldset></dl></div>
              • <legend id='mUecz'><style id='mUecz'><dir id='mUecz'><q id='mUecz'></q></dir></style></legend>
                • 本文介紹了混合調試和發布庫/二進制文件 - 不好的做法?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  在調試二進制文件中使用第 3 方庫的發布版本是一種不好的做法嗎?

                  Is it a bad practice to use a release version of 3rd party library in debug binary?

                  我正在使用第 3 方庫并編譯了一個發行版 .lib 庫.我的 exe 處于調試模式開發.然后我得到:

                  I am using a 3rd party library and compiled a release .lib library. My exe is in debug mode development. Then I got:

                  error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in test1.obj
                  

                  經過一些谷歌搜索后,我發現這是因為我試圖將發布與調試混合在一起,我可能應該在調試模式下編譯庫,或者以其他方式混淆 _ITERATOR_DEBUG_LEVEL 宏.但我只是好奇這是否是推薦的方式以及為什么.我需要為我打算使用的每個 3rd 方庫編譯并保留發布和調試二進制文件的記錄,這似乎很麻煩,這很快就會很多,而無意調試這些代碼.

                  After some googling I found that is because I am trying to mix release with debug, and I should probably compile the library in debug mode or otherwise muddle with the _ITERATOR_DEBUG_LEVEL macro. But I am just curious if that is the recommanded way and why. It just seem cumbersome that I need to compile and keep a record of both release and debug binaries for every 3rd party library I intend to use, which will be many very soon, while having no intention to debug into these code.

                  推薦答案

                  混合調試和發布代碼是不好的做法.問題是不同的版本可能依賴于 C++ 運行時庫的不同基本部分,例如如何分配內存,諸如迭代器之類的結構可能不同,可能會生成額外的代碼來執行操作(例如檢查迭代器).

                  Mixing debug and release code is bad practice. The problem is that the different versions can depend on different fundamental parts of the C++ runtime library, such as how memory is allocated, structures for things like iterators might be different, extra code could be generated to perform operations (e.g. checked iterators).

                  這與使用任何其他不同設置構建的混合庫文件相同.想象一個頭文件包含應用程序和庫都使用的結構的情況.該庫是通過將結構打包和對齊設置為一個值而構建的,而應用程序則是用另一個值構建的.無法保證將結構從應用程序傳遞到庫中會起作用,因為它們的大小和成員位置可能不同.

                  It's the same as mixing library files built with any other different settings. Imagine a case where a header file contains a structure that is used by both application and library. The library is built with structure packing and alignment set to one value and the application built with another. There are no guarantees that passing the structure from the application into the library will work since they could vary in size and member positions.

                  是否可以將您的第 3 方庫構建為 DLL?假設任何函數的接口更清晰并且不嘗試傳遞任何 STL 對象,您將能夠毫無問題地將調試應用程序與發布 DLL 混合使用.

                  Is it possible to build your 3rd party libraries as DLLs? Assuming the interface to any functions is cleaner and does not try to pass any STL objects you will be able to mix a debug application with release DLLs without problems.

                  這篇關于混合調試和發布庫/二進制文件 - 不好的做法?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Why do two functions have the same address?(為什么兩個函數的地址相同?)
                  Why the initializer of std::function has to be CopyConstructible?(為什么 std::function 的初始化程序必須是可復制構造的?)
                  mixing templates with polymorphism(混合模板與多態性)
                  When should I use the keyword quot;typenamequot; when using templates(我什么時候應該使用關鍵字“typename?使用模板時)
                  Dependent name resolution amp; namespace std / Standard Library(依賴名稱解析命名空間 std/標準庫)
                  gcc can compile a variadic template while clang cannot(gcc 可以編譯可變參數模板,而 clang 不能)
                • <legend id='U5vuZ'><style id='U5vuZ'><dir id='U5vuZ'><q id='U5vuZ'></q></dir></style></legend>

                        <i id='U5vuZ'><tr id='U5vuZ'><dt id='U5vuZ'><q id='U5vuZ'><span id='U5vuZ'><b id='U5vuZ'><form id='U5vuZ'><ins id='U5vuZ'></ins><ul id='U5vuZ'></ul><sub id='U5vuZ'></sub></form><legend id='U5vuZ'></legend><bdo id='U5vuZ'><pre id='U5vuZ'><center id='U5vuZ'></center></pre></bdo></b><th id='U5vuZ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='U5vuZ'><tfoot id='U5vuZ'></tfoot><dl id='U5vuZ'><fieldset id='U5vuZ'></fieldset></dl></div>

                          • <bdo id='U5vuZ'></bdo><ul id='U5vuZ'></ul>

                            <small id='U5vuZ'></small><noframes id='U5vuZ'>

                              <tbody id='U5vuZ'></tbody>
                            <tfoot id='U5vuZ'></tfoot>
                            主站蜘蛛池模板: а√中文在线8 | 国产成人免费一区二区60岁 | 亚洲第一区久久 | 亚洲免费人成在线视频观看 | 午夜精品一区二区三区在线视频 | 久久一区二区三区电影 | 日本一本视频 | 亚洲免费三区 | 成人免费区一区二区三区 | 日本午夜网站 | 综合色婷婷 | 日本电影韩国电影免费观看 | 国产日韩一区二区三免费 | 日韩一级电影免费观看 | 97精品超碰一区二区三区 | 久久午夜国产精品www忘忧草 | 国产精品色 | 国产精品久久精品 | 91大神在线资源观看无广告 | 亚洲经典一区 | 久久综合一区二区 | 亚洲高清在线 | 久久r精品 | 国产精品久久午夜夜伦鲁鲁 | 国产一区视频在线 | aaaaaaa片毛片免费观看 | 亚洲成人一级片 | 成人免费在线视频 | 97超碰人人 | 国产精品污www一区二区三区 | 91亚洲精华国产 | 亚洲一二三视频 | 日韩国产一区二区三区 | h在线免费观看 | 久草网站 | 欧美国产亚洲一区二区 | 日韩一区二区黄色片 | 在线区| 国产精品免费在线 | 中文字幕一区二区三区四区 | 真人毛片 |