Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Win 10 執行 Qt 程式提示「找不到 mingwm10.dll」?兩種解法:複製 DLL 或加入環境變數

編輯:關於 Windows

Qt4 開發者在 Win 10 執行編譯後的 .exe 遇到 mingwm10.dll 遺失錯誤,解決方法:

治標法:複製 DLL 至同目錄

將編譯產生的 .exe 複製至 Qt 安裝目錄 \bin 下 (含 QtCore4.dll、QtGui4.dll、mingwm10.dll) 即可直接執行。

治本法:將 DLL 路徑加入系統環境變數 PATH

  1. 右鍵「電腦」→「內容」→「進階系統設定」→「環境變數」。
  2. 編輯系統變數 Path,新增 Qt 安裝路徑下的 mingw\bin 與 qt\bin (例:C:\Qt\2009.04\mingw\bin;C:\Qt\2009.04\qt\bin)。
  3. 確定儲存,無需重開機,直接雙擊 .exe 即可執行。

注意:路徑順序影響載入,若出現「無法定位程序輸入點」錯誤請調整順序;若仍缺 DLL 諜繼續補齊路徑。

Copyright © Windows教程網 All Rights Reserved