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 ,addidtional options-> 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:UsersLenovoDocumentsNetBeansProjectsCppApplication_6distDebugMinGW_1-
Windowscppapplication_6
RUN FAILED (exit value -1,073,741,515, total time: 22ms)
请帮我运行应用程序。谢谢
"这可能表示在 PATH 中找不到所需的.dll"
这表明您已将应用程序构建为链接到包含 wxWidgets 库的 DLL。
您可以从这里走两条路:
-
将应用程序生成更改为静态链接到库。 您还必须构建 wxWidgets 来生成静态库(如果尚未这样做)。
-
将 wxWidgets DLL 复制到您的路径中。(或将 DLL 文件夹添加到您的路径中,作为快速修复以帮助您入门。
选项 #2 现在可能更简单,因为您似乎已经构建了 wxWidgets 的 DLL 版本。 因此,您需要找到在构建wxWidgets时创建的wxWidgets DLL,并将其移动到您的路径中。
相关文章:
- Active Directory:从网络服务帐户下运行的Windows服务调用ADsOpenObject时失败
- 换位表导致测试失败(但在游戏中运行良好)
- 为什么 KMS drmModeSetCrtc() 在 X11 会话中运行时会失败并被拒绝权限?
- 运行时检查失败 #2 变量"A"周围的堆栈已损坏
- 如何让谷歌测试正常运行。测试总是失败。(它不会编译)
- 运行时检查失败 #0 用于运行时重新编译
- 如果所有部分都失败,Catch2 将再次运行测试
- 为什么我的Qt程序在断言失败后继续运行?
- 运行时检查失败 #2 - 变量"e"周围的堆栈已损坏。发生
- 运行时检查失败 #2 MSVC 仅使用 utf8proc 进行调试
- std::copy 导致运行时检查失败 #2
- 运行时检查失败 #2 - 变量周围的堆栈'...'已损坏
- 对c++中使用的keras.h5模型到.pb模型进行了微调,给出了运行模型失败的错误
- Opendir() 在带有空格的名称上失败,在 Linux 上运行
- 运行时检查失败 #2 - 变量"l1"周围的堆栈已损坏
- C++:此代码可以编译,但引发运行时检查失败 #2 - 围绕变量周围的堆栈'num'已损坏。发生
- 运行时检查失败 - 变量周围的堆栈已损坏
- arm_data在第二次运行我的程序时中止失败,然后
- C++,弹出调试断言失败窗口,我得到矢量迭代器不兼容的错误运行时
- 简单的for循环完成并失败运行