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

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

    2. <legend id='x55n2'><style id='x55n2'><dir id='x55n2'><q id='x55n2'></q></dir></style></legend>

        <bdo id='x55n2'></bdo><ul id='x55n2'></ul>

        錯誤 LNK2038:檢測到“_ITERATOR_DEBUG_LEVEL"不匹配

        error LNK2038: mismatch detected for #39;_ITERATOR_DEBUG_LEVEL#39;: value #39;0#39; doesn#39;t match value #39;2#39; in main.obj(錯誤 LNK2038:檢測到“_ITERATOR_DEBUG_LEVEL不匹配:值“0與 main.obj 中的值“2不匹配) - IT屋-程序

        <small id='4yEIl'></small><noframes id='4yEIl'>

            <bdo id='4yEIl'></bdo><ul id='4yEIl'></ul>

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

                  <tbody id='4yEIl'></tbody>

                  本文介紹了錯誤 LNK2038:檢測到“_ITERATOR_DEBUG_LEVEL"不匹配:值“0"與 main.obj 中的值“2"不匹配的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我已經(jīng)閱讀了很多解決我的問題的方法,但都沒有幫助.我嘗試清理,重建.重新安裝了visual 2010,從專業(yè)版到終極版.但我仍然不知道為什么我有這個錯誤.我的項目是這樣的:1 Exe 解決方案來測試我的靜態(tài)庫.1 Dll 解決方案靜態(tài)庫.轉(zhuǎn)換為 dll 的代碼正在使用來自 1 個名為 ClassificationFramework 的庫的函數(shù).我提供了這個庫作為頭文件和 cpp,所以基本上是源代碼.在 Exe 解決方案中,我鏈接了我生成的庫 + 其他一些庫來運行它 + ClassificationFramework.dll.當(dāng)我使用 Release 時一切正常,但是當(dāng)我更改為 Debug 時(因為我想調(diào)試一些東西,我厭倦了在發(fā)布模式下跳過調(diào)試器)我明白了:

                  I have read a lot of solutions to my problem but none helped. I tried clean, rebuild. Reinstalled visual 2010 and change from professional to ultimate. But still I dont know why I have this error. My project look like this: 1 Exe Solution to test my static library. 1 Dll Solution static library. Code which is converted to dll is using function from 1 lib called ClassificationFramework. I provided this lib as headers and cpp so basically source code. In Exe solution I linked my generated library + some other libs to run it + ClassificationFramework.dll. Everything works fine when I use Release but when I change to Debug (because I want to debug some stuff, I am tired of skipping debugger in release mode) I get this:

                      2>Link:
                      2>  ClassificationFramework.lib(SampleClass.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
                      2>ClassificationFramework.lib(SampleClass.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
                      2>ClassificationFramework.lib(SampleNamesSet.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
                      2>ClassificationFramework.lib(SampleSet.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
                      2>ClassificationFramework.lib(DirectoryReader.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
                      2>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
                      2>C:Documents and SettingsAdministratorMy DocumentsVisual Studio 2010ProjectsTransformerDebugTester.exe : fatal error LNK1319: 4 mismatches detected
                  

                  當(dāng)我在 Release 中構(gòu)建時,我也收到了這些警告:

                  When I build in Release I also got these warnings:

                      1>Link:
                      1>  Generating code
                      1>c:program files (x86)microsoft visual studio 10.0vcincludeutility(101): warning C4748: /GS can not protect parameters and local variables from local buffer overrun because ptimizations are disabled in function
                      1>c:userskasiadocumentsvisual studio 2010projectsclassificationframeworkclassificationframeworkdirectoryreader.cpp(30): warning C4748: /GS can not protect parameters and local variables from local buffer overrun because optimizations are disabled in function
                      1>c:program files (x86)microsoft visual studio 10.0vcincludexstring(1589): warning C4748: /GS can not protect parameters and local variables from local buffer overrun because optimizations are disabled in function
                      1>c:userskasiadocumentsvisual studio 2010projectsclassificationframeworkclassificationframeworksamplenamesset.cpp(226): warning C4748: /GS can not protect parameters and local variables from local buffer overrun because optimizations are disabled in function
                      1>c:userskasiadocumentsvisual studio 2010projectsclassificationframeworkclassificationframeworkdirectoryreader.cpp(60): warning C4748: /GS can not protect parameters and local variables from local buffer overrun because optimizations are disabled in function
                      1>c:userskasiadocumentsvisual studio 2010projectsclassificationframeworkclassificationframeworksamplenamesset.cpp(199): warning C4748: /GS can not protect parameters and local variables from local buffer overrun because optimizations are disabled in function
                      1>c:userskasiadocumentsvisual studio 2010projectsclassificationframeworkclassificationframeworksampleset.cpp(27): warning C4748: /GS can not protect parameters and local variables from local buffer overrun because optimizations are disabled in function
                      1>c:userskasiadocumentsvisual studio 2010projectsclassificationframeworkclassificationframeworksamplenamesset.cpp(59): warning C4748: /GS can not protect parameters and local variables from local buffer overrun because optimizations are disabled in function
                      1>  Finished generating code
                      1>ClassificationFramework.lib(SampleSet.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'ClassificationFramework.lib(SampleSet.obj)' or at 'C:Documents and SettingsAdministratorMy DocumentsVisual Studio 2010ProjectsTransformerReleasevc100.pdb'; linking object as if no debug info
                      1>ClassificationFramework.lib(SampleNamesSet.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'ClassificationFramework.lib(SampleNamesSet.obj)' or at 'C:Documents and SettingsAdministratorMy DocumentsVisual Studio 2010ProjectsTransformerReleasevc100.pdb'; linking object as if no debug info
                      1>ClassificationFramework.lib(SampleClass.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'ClassificationFramework.lib(SampleClass.obj)' or at 'C:Documents and SettingsAdministratorMy DocumentsVisual Studio 2010ProjectsTransformerReleasevc100.pdb'; linking object as if no debug info
                      1>ClassificationFramework.lib(DirectoryReader.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'ClassificationFramework.lib(DirectoryReader.obj)' or at 'C:Documents and SettingsAdministratorMy DocumentsVisual Studio 2010ProjectsTransformerReleasevc100.pdb'; linking object as if no debug info
                      1>  Tester.vcxproj -> C:Documents and SettingsAdministratorMy DocumentsVisual Studio 2010ProjectsTransformerReleaseTester.exe
                  

                  <小時>

                  我發(fā)現(xiàn)調(diào)試器因為 pdb 文件的路徑錯誤而跳過.


                  I found that Debugger skips because of wrong path to pdb files.

                  'Tester.exe': Loaded 'C:Documents and SettingsAdministratorMy DocumentsVisual Studio 2010ProjectsWorkReleaseTester.exe', Symbols loaded.
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64kernel32.dll', Cannot find or open the PDB file
                  'Tester.exe': Unloaded 'C:WINDOWSSysWOW64kernel32.dll'
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64
                  tdll.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64kernel32.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:OpenCV2.2inopencv_core220.dll', Binary was not built with debug information.
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64msvcp100.dll', Symbols loaded.
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64msvcr100.dll', Symbols loaded.
                  'Tester.exe': Loaded 'C:OpenCV2.2inopencv_highgui220.dll', Binary was not built with debug information.
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64user32.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64gdi32.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64advapi32.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64
                  pcrt4.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64secur32.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64ole32.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64msvcrt.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSWinSxSx86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.3790.4770_x-ww_A689AB02comctl32.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64avifil32.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64winmm.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64msacm32.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64msvfw32.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64shell32.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64shlwapi.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64avicap32.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64version.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:OpenCV2.2inopencv_imgproc220.dll', Binary was not built with debug information.
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64imm32.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64lpk.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSSysWOW64usp10.dll', Cannot find or open the PDB file
                  'Tester.exe': Loaded 'C:WINDOWSWinSxSwow64_Microsoft.Windows.Common-        Controls_6595b64144ccf1df_6.0.3790.4770_x-ww_8D2E3180comctl32.dll', Cannot find or open the PDB file
                  The program '[4984] Tester.exe: Native' has exited with code 0 (0x0).
                  

                  當(dāng)我轉(zhuǎn)到 Debug->Windows->Modules 時,我發(fā)現(xiàn)他找不到那些 pdb 文件或其他東西.我怎么能告訴他這些文件在這里和這里?我嘗試以管理員身份運行 MSvisual,但這也無濟于事.我使用微軟服務(wù)器加載 pdb 文件,但也沒有幫助.

                  When i go to Debug->Windows->Modules i see that he cannot find those pdb files or something. How i can say him that those files are here here and here? I tried to run MSvisual as administrator but that too didnt help. I used microsoft server to load pdb files but also didnt help.

                  推薦答案

                  在 VS2010 中迭代器調(diào)試級別在調(diào)試中默認(rèn)為 2,在發(fā)布中禁用.您正在使用的 dll 之一可能在調(diào)試中關(guān)閉了迭代器調(diào)試,因為它是在舊版本的 Visual Studio 中構(gòu)建的,或者他們明確地將定義添加到項目中.

                  In VS2010 iterator debug level defaults to 2 in debug and is disabled in release. One of the dlls you are using probably has iterator debugging turned off in debug either because it was built in an older version of visual studio or they explicitly added the defines to the project.

                  搜索 _ITERATOR_DEBUG_LEVEL_SECURE_SCL 刪除它們或在所有項目和源中適當(dāng)?shù)卦O(shè)置它們并重建所有內(nèi)容.

                  Search for _ITERATOR_DEBUG_LEVEL and _SECURE_SCL remove them or set them appropriately in all projects and sources and rebuild everything.

                  _ITERATOR_DEBUG_LEVEL = 0 // disabled (for release builds)
                  _ITERATOR_DEBUG_LEVEL = 1 // enabled (if _SECURE_SCL is defined)
                  _ITERATOR_DEBUG_LEVEL = 2 // enabled (for debug builds)
                  

                  簡而言之,您可能正在混合發(fā)布和調(diào)試 dll.不要在調(diào)試時鏈接發(fā)布 dll,反之亦然!

                  In short you are probably mixing release and debug dlls. Don't linked release dlls in debug or vice versa!

                  這篇關(guān)于錯誤 LNK2038:檢測到“_ITERATOR_DEBUG_LEVEL"不匹配:值“0"與 main.obj 中的值“2"不匹配的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  Why do two functions have the same address?(為什么兩個函數(shù)的地址相同?)
                  Why the initializer of std::function has to be CopyConstructible?(為什么 std::function 的初始化程序必須是可復(fù)制構(gòu)造的?)
                  mixing templates with polymorphism(混合模板與多態(tài)性)
                  When should I use the keyword quot;typenamequot; when using templates(我什么時候應(yīng)該使用關(guān)鍵字“typename?使用模板時)
                  Dependent name resolution amp; namespace std / Standard Library(依賴名稱解析命名空間 std/標(biāo)準(zhǔn)庫)
                  gcc can compile a variadic template while clang cannot(gcc 可以編譯可變參數(shù)模板,而 clang 不能)

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

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

                      1. <legend id='MORL6'><style id='MORL6'><dir id='MORL6'><q id='MORL6'></q></dir></style></legend>

                        • <bdo id='MORL6'></bdo><ul id='MORL6'></ul>
                            <tfoot id='MORL6'></tfoot>
                            主站蜘蛛池模板: 999久久久久久久久6666 | 中国一级特黄真人毛片免费观看 | 亚洲国产精久久久久久久 | 中文字幕一区二区三区日韩精品 | www.黄色片视频 | 一级免费毛片 | 日产精品久久久一区二区福利 | 人人性人人性碰国产 | 亚洲国产成人av好男人在线观看 | 一区二区三区视频在线观看 | 久热国产精品视频 | a毛片| 亚洲第一av | 亚洲午夜一区二区 | 欧美a√| 免费中文字幕 | 亚洲国产黄色av | 国产精品久久久久久 | www.操.com | 亚洲精品国产第一综合99久久 | 日韩精品一区二区三区视频播放 | 国产精品18hdxxxⅹ在线 | 亚洲精品久久 | 亚洲精品黄| 天天插天天狠天天透 | 亚洲综合一区二区三区 | 一区二区免费在线 | 99re热精品视频国产免费 | 欧美一区二区三区在线观看视频 | 亚洲国产精品区 | 一区二区三区精品视频 | 久久综合狠狠综合久久 | 中文字幕精品一区二区三区在线 | 欧美aⅴ在线观看 | 日韩精品一区二区三区中文字幕 | av中文在线播放 | 在线亚洲人成电影网站色www | 国产精品国产三级国产aⅴ中文 | 日韩精品在线一区 | 人人鲁人人莫人人爱精品 | 精品一区二区在线视频 |