簡體   English   中英

WxWidgets應用程序運行失敗

[英]WxWidgets Application Run Failed

幾個小時后,我終於能夠按如下所示編譯wxwidgets-2.8.12庫:

我將.zip解壓縮到文件夾D:\\ wxwidgets2812 \\ wxwidgets-2.8.12

我進入D:\\ MinGW \\ MSYS \\ 1.0運行批處理文件,並執行以下操作:

轉到以下路徑:

 cd /d/{WXWIN}/build/msw 

並以以下方式編譯該庫:

 mingw32-make -f makefile.gcc MONOLITHIC=0 SHARED=1 UNICODE=0 BUILD=release

它成功構建/編譯,然后我在項目屬性中添加了-> include目錄-> D:\\ wxwidgets2812 \\ wxwidgets-2.8.12 \\ include,附加選項-> wx-config --cxxflags ,在鏈接器中添加了庫-> wx-config --libs

  Now when i run my code / project ,it gives me following errors:-

 The application failed with exit code -1073741515 (0xc0000135). 
 This could indicate that no required .dll was found in the PATH. 
 Please try to start the following command from the command shell (cmd.exe). 
 This may give some additional information. 

 C:\Users\Lenovo\Documents\NetBeansProjects\CppApplication_6\dist\Debug\MinGW_1-    
 Windows\cppapplication_6 

 RUN FAILED (exit value -1,073,741,515, total time: 22ms)

請幫助我運行該應用程序。 謝謝

“這可能表明在PATH中找不到所需的.dll”

這表明您已經構建了應用程序以鏈接到包含wxWidgets庫的DLL。

您可以從此處進行兩種方式:

  1. 更改您的應用程序構建以靜態鏈接到庫。 如果還沒有生成,則還必須構建wxWidgets來生成靜態庫。

  2. 將wxWidgets DLL復制到您的路徑中。 (或將DLL文件夾添加到您的路徑中,以作為快速入門的開始。)

現在,選項2可能更簡單,因為您似乎已經構建了wxWidgets的DLL版本。 因此,您需要找到在構建wxWidgets時創建的wxWidgets DLL並將其移入路徑。

暫無
暫無

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

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