简体   繁体   中英

WxWidgets Application Run Failed

After hours i was finally able to compile the wxwidgets-2.8.12 library as follows:-

I unzipped the .zip into a folder D:\\wxwidgets2812\\wxwidgets-2.8.12

I went in D:\\MinGW\\MSYS\\1.0 run the batch file and did the following:-

Went to the following path:-

 cd /d/{WXWIN}/build/msw 

and compiled the library in the following way as :-

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

It Build /Compiled succesfully Then I added in the project properties ->include directories ->D:\\wxwidgets2812\\wxwidgets-2.8.12\\include ,addidtional options-> wx-config --cxxflags ,in linker i added in libraries-> 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)

Please help me running the application. Thanks

" This could indicate that no required .dll was found in the PATH"

This suggests that you have built your application to link to a DLL containing the wxWidgets library.

You can go two ways from here:

  1. Change your application build to link statically to the library. You will also have to build wxWidgets to generate a static library if you have not already done so.

  2. Copy the wxWidgets DLL into your path. ( Or add the DLL folder to your path as a quick fix to get you started. )

Option #2 is probably simpler for now, since you seem to have built the DLL version of wxWidgets. So, you need to find the wxWidgets DLL that was created when you built wxWidgets and move it into your path.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM