簡體   English   中英

發布版本取決於MFC的調試dll

[英]Release build depends on debug dll from MFC

我們的發行版本需要MFC庫的調試版本。 有誰知道從哪里開始尋找項目,以便我們可以正確地更改那些依賴關系以發布依賴關系?
使用的命令行:

對於(* .lib)中的%f,請執行dumpbin /IMPORTS:msvcrt120d.dll /OUT:output.txt

編輯:

我得到的輸出(與我指定的導入文件無關):

Dump of file DataMts.lib

File Type: LIBRARY

Summary

     1B0 .CRT$XCU
    15BA .bss
     238 .data
    5D67 .data$r
    1FC0 .debug$S
   1ABB2 .drectve
   1AE68 .pdata
   1CA3C .rdata
    BDF0 .rdata$r
     730 .rsrc$01
    25F8 .rsrc$02
     636 .text$di
  146BCA .text$mn
    F259 .text$x
     597 .text$yd
   3BC58 .xdata
     980 .xdata$x
      10 ATL$__a
      10 ATL$__z

只是為了確保我們最終的構建沒有調試依賴性,這是我的bat文件-

@echo off
echo Testing...

for %%v in (*.exe *.dll) do (
dumpbin /imports %%v | find /i "0d.dll" > nul
if not errorlevel 1 echo %%v is Debug
)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM